Skip to content

Commit e6a7564

Browse files
July Merge API Sync (#21)
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
1 parent f4bf3f8 commit e6a7564

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+1855
-166
lines changed

ats/applications.go

Lines changed: 1278 additions & 126 deletions
Large diffs are not rendered by default.

ats/audit_trail.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ type AuditTrailListRequest struct {
77
Cursor *string `json:"-"`
88
// If included, will only include audit trail events that occurred before this time
99
EndDate *string `json:"-"`
10-
// If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`
10+
// If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED`
1111
EventType *string `json:"-"`
1212
// Number of results to return per page.
1313
PageSize *int `json:"-"`

ats/issues.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ type IssuesListRequest struct {
2525
LastIncidentTimeAfter *time.Time `json:"-"`
2626
// If provided, will only return issues whose last incident time was before this datetime.
2727
LastIncidentTimeBefore *time.Time `json:"-"`
28+
// If provided, will only include issues pertaining to the linked account passed in.
29+
LinkedAccountId *string `json:"-"`
2830
// Number of results to return per page.
2931
PageSize *int `json:"-"`
3032
// If included, will only include issues whose most recent action occurred after this time

ats/issues/client.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func NewClient(opts ...core.ClientOption) *Client {
3030
}
3131
}
3232

33-
// Gets issues.
33+
// Gets all issues for Organization.
3434
func (c *Client) List(ctx context.Context, request *ats.IssuesListRequest) (*ats.PaginatedIssueList, error) {
3535
baseURL := "https://api.merge.dev/api"
3636
if c.baseURL != "" {
@@ -69,6 +69,9 @@ func (c *Client) List(ctx context.Context, request *ats.IssuesListRequest) (*ats
6969
if request.LastIncidentTimeBefore != nil {
7070
queryParams.Add("last_incident_time_before", fmt.Sprintf("%v", request.LastIncidentTimeBefore.Format(time.RFC3339)))
7171
}
72+
if request.LinkedAccountId != nil {
73+
queryParams.Add("linked_account_id", fmt.Sprintf("%v", *request.LinkedAccountId))
74+
}
7275
if request.PageSize != nil {
7376
queryParams.Add("page_size", fmt.Sprintf("%v", *request.PageSize))
7477
}

ats/link_token.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ type EndUserDetailsRequest struct {
1717
LinkExpiryMins *int `json:"link_expiry_mins,omitempty"`
1818
// Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link.
1919
ShouldCreateMagicLinkUrl *bool `json:"should_create_magic_link_url,omitempty"`
20+
// Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link.
21+
HideAdminMagicLink *bool `json:"hide_admin_magic_link,omitempty"`
2022
// An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account.
2123
CommonModels []*CommonModelScopesBodyRequest `json:"common_models,omitempty"`
2224
// When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings.

0 commit comments

Comments
 (0)