polytomic 1.18.1 → 25.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BaseClient.d.ts +46 -0
- package/BaseClient.js +64 -0
- package/CONTRIBUTING.md +133 -0
- package/Client.d.ts +62 -62
- package/Client.js +102 -31
- package/api/errors/BadGatewayError.d.ts +6 -0
- package/api/errors/BadGatewayError.js +54 -0
- package/api/errors/BadRequestError.d.ts +3 -5
- package/api/errors/BadRequestError.js +25 -12
- package/api/errors/ConflictError.d.ts +3 -5
- package/api/errors/ConflictError.js +25 -12
- package/api/errors/ForbiddenError.d.ts +3 -5
- package/api/errors/ForbiddenError.js +25 -12
- package/api/errors/GatewayTimeoutError.d.ts +6 -0
- package/api/errors/GatewayTimeoutError.js +54 -0
- package/api/errors/InternalServerError.d.ts +3 -5
- package/api/errors/InternalServerError.js +25 -12
- package/api/errors/NotFoundError.d.ts +3 -5
- package/api/errors/NotFoundError.js +25 -12
- package/api/errors/RequestTimeoutError.d.ts +6 -0
- package/api/errors/RequestTimeoutError.js +54 -0
- package/api/errors/TooManyRequestsError.d.ts +6 -0
- package/api/errors/TooManyRequestsError.js +54 -0
- package/api/errors/UnauthorizedError.d.ts +3 -5
- package/api/errors/UnauthorizedError.js +25 -12
- package/api/errors/UnprocessableEntityError.d.ts +3 -5
- package/api/errors/UnprocessableEntityError.js +25 -12
- package/api/errors/index.d.ts +8 -4
- package/api/errors/index.js +8 -4
- package/api/index.d.ts +1 -1
- package/api/index.js +1 -1
- package/api/resources/bulkSync/client/Client.d.ts +65 -79
- package/api/resources/bulkSync/client/Client.js +340 -479
- package/api/resources/bulkSync/client/requests/BulkSyncGetRequest.d.ts +0 -3
- package/api/resources/bulkSync/client/requests/BulkSyncGetRequest.js +1 -3
- package/api/resources/bulkSync/client/requests/BulkSyncGetSourceRequest.d.ts +1 -6
- package/api/resources/bulkSync/client/requests/BulkSyncGetSourceRequest.js +1 -3
- package/api/resources/bulkSync/client/requests/BulkSyncListRequest.d.ts +1 -6
- package/api/resources/bulkSync/client/requests/BulkSyncListRequest.js +1 -3
- package/api/resources/bulkSync/client/requests/BulkSyncRemoveRequest.d.ts +0 -3
- package/api/resources/bulkSync/client/requests/BulkSyncRemoveRequest.js +1 -3
- package/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +25 -12
- package/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.js +1 -3
- package/api/resources/bulkSync/client/requests/StartBulkSyncRequest.d.ts +2 -7
- package/api/resources/bulkSync/client/requests/StartBulkSyncRequest.js +1 -3
- package/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +25 -12
- package/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.js +1 -3
- package/api/resources/bulkSync/client/requests/index.d.ts +7 -7
- package/api/resources/bulkSync/exports.d.ts +3 -0
- package/api/resources/bulkSync/exports.js +22 -0
- package/api/resources/bulkSync/index.d.ts +0 -1
- package/api/resources/bulkSync/index.js +0 -1
- package/api/resources/bulkSync/resources/executions/client/Client.d.ts +85 -48
- package/api/resources/bulkSync/resources/executions/client/Client.js +364 -287
- package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsExportLogsRequest.d.ts +4 -7
- package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsExportLogsRequest.js +1 -3
- package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsGetConsoleLogsRequest.d.ts +13 -0
- package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsGetConsoleLogsRequest.js +3 -0
- package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsGetSchemaConsoleLogsRequest.d.ts +13 -0
- package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsGetSchemaConsoleLogsRequest.js +3 -0
- package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListRequest.d.ts +4 -15
- package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListRequest.js +1 -3
- package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListStatusRequest.d.ts +5 -13
- package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListStatusRequest.js +1 -3
- package/api/resources/bulkSync/resources/executions/client/requests/index.d.ts +5 -3
- package/api/resources/bulkSync/resources/executions/exports.d.ts +2 -0
- package/api/resources/bulkSync/resources/executions/exports.js +21 -0
- package/api/resources/bulkSync/resources/index.d.ts +3 -3
- package/api/resources/bulkSync/resources/index.js +21 -11
- package/api/resources/bulkSync/resources/schedules/client/Client.d.ts +34 -47
- package/api/resources/bulkSync/resources/schedules/client/Client.js +160 -226
- package/api/resources/bulkSync/resources/schedules/client/requests/CreateScheduleRequest.d.ts +3 -6
- package/api/resources/bulkSync/resources/schedules/client/requests/CreateScheduleRequest.js +1 -3
- package/api/resources/bulkSync/resources/schedules/client/requests/UpdateScheduleRequest.d.ts +3 -6
- package/api/resources/bulkSync/resources/schedules/client/requests/UpdateScheduleRequest.js +1 -3
- package/api/resources/bulkSync/resources/schedules/client/requests/index.d.ts +2 -2
- package/api/resources/bulkSync/resources/schedules/exports.d.ts +2 -0
- package/api/resources/bulkSync/resources/schedules/exports.js +21 -0
- package/api/resources/bulkSync/resources/schemas/client/Client.d.ts +29 -42
- package/api/resources/bulkSync/resources/schemas/client/Client.js +165 -222
- package/api/resources/bulkSync/resources/schemas/client/requests/SchemasListRequest.d.ts +2 -7
- package/api/resources/bulkSync/resources/schemas/client/requests/SchemasListRequest.js +1 -3
- package/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +1 -4
- package/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.js +1 -3
- package/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSyncSchemasRequest.d.ts +9 -0
- package/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSyncSchemasRequest.js +3 -0
- package/api/resources/bulkSync/resources/schemas/client/requests/index.d.ts +3 -3
- package/api/resources/bulkSync/resources/schemas/exports.d.ts +2 -0
- package/api/resources/bulkSync/resources/schemas/exports.js +21 -0
- package/api/resources/connections/client/Client.d.ts +176 -66
- package/api/resources/connections/client/Client.js +639 -505
- package/api/resources/connections/client/requests/ConnectCardRequest.d.ts +0 -3
- package/api/resources/connections/client/requests/ConnectCardRequest.js +1 -3
- package/api/resources/connections/client/requests/ConnectionsRemoveRequest.d.ts +0 -3
- package/api/resources/connections/client/requests/ConnectionsRemoveRequest.js +1 -3
- package/api/resources/connections/client/requests/CreateConnectionRequestSchema.d.ts +0 -3
- package/api/resources/connections/client/requests/CreateConnectionRequestSchema.js +1 -3
- package/api/resources/connections/client/requests/ExecuteConnectionProxyRequest.d.ts +13 -0
- package/api/resources/connections/client/requests/ExecuteConnectionProxyRequest.js +3 -0
- package/api/resources/connections/client/requests/GetConnectionTypeParameterValuesRequestSchema.d.ts +0 -3
- package/api/resources/connections/client/requests/GetConnectionTypeParameterValuesRequestSchema.js +1 -3
- package/api/resources/connections/client/requests/PartnerCreateSharedConnectionRequestSchema.d.ts +12 -0
- package/api/resources/connections/client/requests/PartnerCreateSharedConnectionRequestSchema.js +3 -0
- package/api/resources/connections/client/requests/TestConnectionRequest.d.ts +0 -3
- package/api/resources/connections/client/requests/TestConnectionRequest.js +1 -3
- package/api/resources/connections/client/requests/UpdateConnectionRequestSchema.d.ts +0 -3
- package/api/resources/connections/client/requests/UpdateConnectionRequestSchema.js +1 -3
- package/api/resources/connections/client/requests/index.d.ts +8 -7
- package/api/resources/connections/exports.d.ts +2 -0
- package/api/resources/connections/exports.js +21 -0
- package/api/resources/entities/client/Client.d.ts +124 -0
- package/api/resources/entities/client/Client.js +254 -0
- package/api/resources/entities/exports.d.ts +2 -0
- package/api/resources/entities/exports.js +21 -0
- package/api/resources/events/client/Client.d.ts +18 -32
- package/api/resources/events/client/Client.js +88 -124
- package/api/resources/events/client/requests/EventsListRequest.d.ts +9 -20
- package/api/resources/events/client/requests/EventsListRequest.js +1 -3
- package/api/resources/events/client/requests/index.d.ts +1 -1
- package/api/resources/events/exports.d.ts +2 -0
- package/api/resources/events/exports.js +21 -0
- package/api/resources/identity/client/Client.d.ts +11 -25
- package/api/resources/identity/client/Client.js +51 -59
- package/api/resources/identity/exports.d.ts +2 -0
- package/api/resources/identity/exports.js +21 -0
- package/api/resources/index.d.ts +15 -15
- package/api/resources/index.js +33 -23
- package/api/resources/jobs/client/Client.d.ts +13 -28
- package/api/resources/jobs/client/Client.js +53 -66
- package/api/resources/jobs/exports.d.ts +2 -0
- package/api/resources/jobs/exports.js +21 -0
- package/api/resources/modelSync/client/Client.d.ts +63 -69
- package/api/resources/modelSync/client/Client.js +364 -509
- package/api/resources/modelSync/client/requests/CreateSyncRequest.d.ts +45 -0
- package/api/resources/modelSync/client/requests/CreateSyncRequest.js +3 -0
- package/api/resources/modelSync/client/requests/ModelSyncGetSourceFieldsRequest.d.ts +2 -7
- package/api/resources/modelSync/client/requests/ModelSyncGetSourceFieldsRequest.js +1 -3
- package/api/resources/modelSync/client/requests/ModelSyncGetSourceRequest.d.ts +2 -7
- package/api/resources/modelSync/client/requests/ModelSyncGetSourceRequest.js +1 -3
- package/api/resources/modelSync/client/requests/ModelSyncListRequest.d.ts +13 -6
- package/api/resources/modelSync/client/requests/ModelSyncListRequest.js +1 -3
- package/api/resources/modelSync/client/requests/StartSyncRequest.d.ts +9 -0
- package/api/resources/modelSync/client/requests/StartSyncRequest.js +3 -0
- package/api/resources/modelSync/client/requests/UpdateSyncRequest.d.ts +45 -0
- package/api/resources/modelSync/client/requests/UpdateSyncRequest.js +3 -0
- package/api/resources/modelSync/client/requests/index.d.ts +6 -6
- package/api/resources/modelSync/exports.d.ts +3 -0
- package/api/resources/modelSync/exports.js +22 -0
- package/api/resources/modelSync/resources/executions/client/Client.d.ts +58 -51
- package/api/resources/modelSync/resources/executions/client/Client.js +254 -242
- package/api/resources/modelSync/resources/executions/client/requests/ExecutionsGetConsoleLogsRequest.d.ts +13 -0
- package/api/resources/modelSync/resources/executions/client/requests/ExecutionsGetConsoleLogsRequest.js +3 -0
- package/api/resources/modelSync/resources/executions/client/requests/ExecutionsListRequest.d.ts +0 -3
- package/api/resources/modelSync/resources/executions/client/requests/ExecutionsListRequest.js +1 -3
- package/api/resources/modelSync/resources/executions/client/requests/index.d.ts +2 -2
- package/api/resources/modelSync/resources/executions/exports.d.ts +2 -0
- package/api/resources/modelSync/resources/executions/exports.js +21 -0
- package/api/resources/modelSync/resources/index.d.ts +2 -2
- package/api/resources/modelSync/resources/index.js +20 -10
- package/api/resources/modelSync/resources/targets/client/Client.d.ts +17 -53
- package/api/resources/modelSync/resources/targets/client/Client.js +110 -233
- package/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetFieldsRequest.d.ts +2 -9
- package/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetFieldsRequest.js +1 -3
- package/api/resources/modelSync/resources/targets/client/requests/index.d.ts +1 -2
- package/api/resources/modelSync/resources/targets/exports.d.ts +2 -0
- package/api/resources/modelSync/resources/targets/exports.js +21 -0
- package/api/resources/models/client/Client.d.ts +49 -54
- package/api/resources/models/client/Client.js +308 -399
- package/api/resources/models/client/requests/EnrichmentInputFieldsRequest.d.ts +8 -0
- package/api/resources/models/client/requests/EnrichmentInputFieldsRequest.js +3 -0
- package/api/resources/models/client/requests/ModelsCreateRequest.d.ts +2 -4
- package/api/resources/models/client/requests/ModelsCreateRequest.js +1 -3
- package/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.d.ts +2 -7
- package/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.js +1 -3
- package/api/resources/models/client/requests/ModelsGetRequest.d.ts +3 -4
- package/api/resources/models/client/requests/ModelsGetRequest.js +1 -3
- package/api/resources/models/client/requests/ModelsPreviewRequest.d.ts +2 -4
- package/api/resources/models/client/requests/ModelsPreviewRequest.js +1 -3
- package/api/resources/models/client/requests/ModelsRemoveRequest.d.ts +3 -4
- package/api/resources/models/client/requests/ModelsRemoveRequest.js +1 -3
- package/api/resources/models/client/requests/ModelsSampleRequest.d.ts +3 -4
- package/api/resources/models/client/requests/ModelsSampleRequest.js +1 -3
- package/api/resources/models/client/requests/UpdateModelRequest.d.ts +1 -4
- package/api/resources/models/client/requests/UpdateModelRequest.js +1 -3
- package/api/resources/models/client/requests/index.d.ts +8 -8
- package/api/resources/models/exports.d.ts +2 -0
- package/api/resources/models/exports.js +21 -0
- package/api/resources/notifications/client/Client.d.ts +16 -29
- package/api/resources/notifications/client/Client.js +79 -98
- package/api/resources/notifications/client/requests/GlobalErrorSubscribersRequest.d.ts +8 -0
- package/api/resources/notifications/client/requests/GlobalErrorSubscribersRequest.js +3 -0
- package/api/resources/notifications/client/requests/index.d.ts +1 -1
- package/api/resources/notifications/exports.d.ts +2 -0
- package/api/resources/notifications/exports.js +21 -0
- package/api/resources/organization/client/Client.d.ts +67 -54
- package/api/resources/organization/client/Client.js +227 -224
- package/api/resources/organization/client/requests/CreateOrganizationRequestSchema.d.ts +0 -3
- package/api/resources/organization/client/requests/CreateOrganizationRequestSchema.js +1 -3
- package/api/resources/organization/client/requests/UpdateOrganizationRequestSchema.d.ts +0 -3
- package/api/resources/organization/client/requests/UpdateOrganizationRequestSchema.js +1 -3
- package/api/resources/organization/client/requests/index.d.ts +2 -2
- package/api/resources/organization/exports.d.ts +2 -0
- package/api/resources/organization/exports.js +21 -0
- package/api/resources/permissions/client/Client.d.ts +13 -30
- package/api/resources/permissions/client/Client.js +9 -10
- package/api/resources/permissions/exports.d.ts +3 -0
- package/api/resources/permissions/exports.js +22 -0
- package/api/resources/permissions/resources/index.d.ts +1 -1
- package/api/resources/permissions/resources/index.js +18 -8
- package/api/resources/permissions/resources/policies/client/Client.d.ts +24 -37
- package/api/resources/permissions/resources/policies/client/Client.js +145 -208
- package/api/resources/permissions/resources/policies/client/requests/CreatePolicyRequest.d.ts +1 -4
- package/api/resources/permissions/resources/policies/client/requests/CreatePolicyRequest.js +1 -3
- package/api/resources/permissions/resources/policies/client/requests/UpdatePolicyRequest.d.ts +1 -4
- package/api/resources/permissions/resources/policies/client/requests/UpdatePolicyRequest.js +1 -3
- package/api/resources/permissions/resources/policies/client/requests/index.d.ts +2 -2
- package/api/resources/permissions/resources/policies/exports.d.ts +2 -0
- package/api/resources/permissions/resources/policies/exports.js +21 -0
- package/api/resources/permissions/resources/roles/client/Client.d.ts +24 -37
- package/api/resources/permissions/resources/roles/client/Client.js +141 -207
- package/api/resources/permissions/resources/roles/client/requests/CreateRoleRequest.d.ts +0 -3
- package/api/resources/permissions/resources/roles/client/requests/CreateRoleRequest.js +1 -3
- package/api/resources/permissions/resources/roles/client/requests/UpdateRoleRequest.d.ts +0 -3
- package/api/resources/permissions/resources/roles/client/requests/UpdateRoleRequest.js +1 -3
- package/api/resources/permissions/resources/roles/client/requests/index.d.ts +2 -2
- package/api/resources/permissions/resources/roles/exports.d.ts +2 -0
- package/api/resources/permissions/resources/roles/exports.js +21 -0
- package/api/resources/queryRunner/client/Client.d.ts +20 -31
- package/api/resources/queryRunner/client/Client.js +96 -115
- package/api/resources/queryRunner/client/requests/QueryRunnerGetQueryRequest.d.ts +4 -7
- package/api/resources/queryRunner/client/requests/QueryRunnerGetQueryRequest.js +1 -3
- package/api/resources/queryRunner/client/requests/RunQueryRequest.d.ts +10 -0
- package/api/resources/queryRunner/client/requests/RunQueryRequest.js +3 -0
- package/api/resources/queryRunner/client/requests/index.d.ts +2 -2
- package/api/resources/queryRunner/exports.d.ts +2 -0
- package/api/resources/queryRunner/exports.js +21 -0
- package/api/resources/schemas/client/Client.d.ts +44 -57
- package/api/resources/schemas/client/Client.js +240 -340
- package/api/resources/schemas/client/requests/SetPrimaryKeysRequest.d.ts +1 -4
- package/api/resources/schemas/client/requests/SetPrimaryKeysRequest.js +1 -3
- package/api/resources/schemas/client/requests/UpsertSchemaFieldRequest.d.ts +2 -5
- package/api/resources/schemas/client/requests/UpsertSchemaFieldRequest.js +1 -3
- package/api/resources/schemas/client/requests/index.d.ts +2 -2
- package/api/resources/schemas/exports.d.ts +2 -0
- package/api/resources/schemas/exports.js +21 -0
- package/api/resources/users/client/Client.d.ts +135 -49
- package/api/resources/users/client/Client.js +499 -266
- package/api/resources/users/client/requests/CreateUserRequestSchema.d.ts +0 -3
- package/api/resources/users/client/requests/CreateUserRequestSchema.js +1 -3
- package/api/resources/users/client/requests/CurrentOrgCreateUserRequestSchema.d.ts +14 -0
- package/api/resources/users/client/requests/CurrentOrgCreateUserRequestSchema.js +3 -0
- package/api/resources/users/client/requests/CurrentOrgUpdateUserRequestSchema.d.ts +10 -0
- package/api/resources/users/client/requests/CurrentOrgUpdateUserRequestSchema.js +3 -0
- package/api/resources/users/client/requests/UpdateUserRequestSchema.d.ts +0 -3
- package/api/resources/users/client/requests/UpdateUserRequestSchema.js +1 -3
- package/api/resources/users/client/requests/UsersCreateApiKeyRequest.d.ts +1 -6
- package/api/resources/users/client/requests/UsersCreateApiKeyRequest.js +1 -3
- package/api/resources/users/client/requests/index.d.ts +5 -3
- package/api/resources/users/exports.d.ts +2 -0
- package/api/resources/users/exports.js +21 -0
- package/api/resources/webhooks/client/Client.d.ts +30 -39
- package/api/resources/webhooks/client/Client.js +184 -266
- package/api/resources/webhooks/client/requests/CreateWebhooksSchema.d.ts +0 -3
- package/api/resources/webhooks/client/requests/CreateWebhooksSchema.js +1 -3
- package/api/resources/webhooks/client/requests/UpdateWebhooksSchema.d.ts +0 -3
- package/api/resources/webhooks/client/requests/UpdateWebhooksSchema.js +1 -3
- package/api/resources/webhooks/client/requests/index.d.ts +2 -2
- package/api/resources/webhooks/exports.d.ts +2 -0
- package/api/resources/webhooks/exports.js +21 -0
- package/api/types/ActivateSyncEnvelope.d.ts +2 -5
- package/api/types/ActivateSyncEnvelope.js +1 -3
- package/api/types/ActivateSyncInput.d.ts +0 -3
- package/api/types/ActivateSyncInput.js +1 -3
- package/api/types/ActivateSyncOutput.d.ts +2 -5
- package/api/types/ActivateSyncOutput.js +1 -3
- package/api/types/ApiError.d.ts +4 -7
- package/api/types/ApiError.js +1 -3
- package/api/types/ApiKeyResponse.d.ts +1 -4
- package/api/types/ApiKeyResponse.js +1 -3
- package/api/types/ApiKeyResponseEnvelope.d.ts +2 -5
- package/api/types/ApiKeyResponseEnvelope.js +1 -3
- package/api/types/BackendConnectionCapabilities.d.ts +0 -3
- package/api/types/BackendConnectionCapabilities.js +1 -3
- package/api/types/BackendOAuthPrompt.d.ts +3 -6
- package/api/types/BackendOAuthPrompt.js +1 -3
- package/api/types/BulkBulkSyncSchedule.d.ts +17 -20
- package/api/types/BulkBulkSyncSchedule.js +1 -3
- package/api/types/BulkDiscover.d.ts +1 -4
- package/api/types/BulkDiscover.js +1 -3
- package/api/types/BulkExecutionStatus.d.ts +1 -4
- package/api/types/BulkExecutionStatus.js +1 -3
- package/api/types/BulkFetchMode.d.ts +2 -7
- package/api/types/BulkFetchMode.js +2 -3
- package/api/types/BulkField.d.ts +5 -8
- package/api/types/BulkField.js +1 -3
- package/api/types/BulkFilter.d.ts +3 -6
- package/api/types/BulkFilter.js +1 -3
- package/api/types/BulkNormalizeNames.d.ts +1 -4
- package/api/types/BulkNormalizeNames.js +1 -3
- package/api/types/BulkOutputDisposition.d.ts +1 -4
- package/api/types/BulkOutputDisposition.js +1 -3
- package/api/types/BulkResyncMode.d.ts +1 -4
- package/api/types/BulkResyncMode.js +1 -3
- package/api/types/BulkScheduleSyncMode.d.ts +1 -4
- package/api/types/BulkScheduleSyncMode.js +1 -3
- package/api/types/BulkSchema.d.ts +11 -14
- package/api/types/BulkSchema.js +1 -3
- package/api/types/BulkSchemaEnvelope.d.ts +2 -5
- package/api/types/BulkSchemaEnvelope.js +1 -3
- package/api/types/BulkSchemaExecutionStatus.d.ts +1 -4
- package/api/types/BulkSchemaExecutionStatus.js +1 -3
- package/api/types/BulkSchemaListItem.d.ts +18 -0
- package/api/types/BulkSchemaListItem.js +3 -0
- package/api/types/BulkSelectiveMode.d.ts +1 -4
- package/api/types/BulkSelectiveMode.js +1 -3
- package/api/types/BulkSyncAdditionalScheduleRequest.d.ts +19 -0
- package/api/types/BulkSyncAdditionalScheduleRequest.js +3 -0
- package/api/types/BulkSyncAdditionalScheduleResponse.d.ts +26 -0
- package/api/types/BulkSyncAdditionalScheduleResponse.js +3 -0
- package/api/types/BulkSyncDefaultScheduleRequest.d.ts +15 -0
- package/api/types/BulkSyncDefaultScheduleRequest.js +3 -0
- package/api/types/BulkSyncDefaultScheduleResponse.d.ts +22 -0
- package/api/types/BulkSyncDefaultScheduleResponse.js +3 -0
- package/api/types/BulkSyncDest.d.ts +4 -7
- package/api/types/BulkSyncDest.js +1 -3
- package/api/types/BulkSyncDestEnvelope.d.ts +2 -5
- package/api/types/BulkSyncDestEnvelope.js +1 -3
- package/api/types/BulkSyncExecution.d.ts +18 -21
- package/api/types/BulkSyncExecution.js +1 -3
- package/api/types/BulkSyncExecutionEnvelope.d.ts +2 -5
- package/api/types/BulkSyncExecutionEnvelope.js +1 -3
- package/api/types/BulkSyncExecutionLogs.d.ts +6 -0
- package/api/types/BulkSyncExecutionLogs.js +3 -0
- package/api/types/BulkSyncExecutionLogsEnvelope.d.ts +4 -0
- package/api/types/BulkSyncExecutionLogsEnvelope.js +3 -0
- package/api/types/BulkSyncExecutionStatus.d.ts +5 -8
- package/api/types/BulkSyncExecutionStatus.js +1 -3
- package/api/types/BulkSyncIngestionStatus.d.ts +9 -12
- package/api/types/BulkSyncIngestionStatus.js +1 -3
- package/api/types/BulkSyncListEnvelope.d.ts +2 -5
- package/api/types/BulkSyncListEnvelope.js +1 -3
- package/api/types/BulkSyncResponse.d.ts +35 -29
- package/api/types/BulkSyncResponse.js +1 -3
- package/api/types/BulkSyncResponseEnvelope.d.ts +2 -5
- package/api/types/BulkSyncResponseEnvelope.js +1 -3
- package/api/types/BulkSyncScheduleApi.d.ts +15 -0
- package/api/types/BulkSyncScheduleApi.js +3 -0
- package/api/types/BulkSyncSchemaExecution.d.ts +12 -15
- package/api/types/BulkSyncSchemaExecution.js +1 -3
- package/api/types/BulkSyncSchemaExecutionStatus.d.ts +10 -13
- package/api/types/BulkSyncSchemaExecutionStatus.js +1 -3
- package/api/types/BulkSyncSource.d.ts +4 -7
- package/api/types/BulkSyncSource.js +1 -3
- package/api/types/BulkSyncSourceCapabilities.d.ts +3 -0
- package/api/types/BulkSyncSourceCapabilities.js +3 -0
- package/api/types/BulkSyncSourceEnvelope.d.ts +2 -5
- package/api/types/BulkSyncSourceEnvelope.js +1 -3
- package/api/types/BulkSyncSourceSchemaEnvelope.d.ts +2 -5
- package/api/types/BulkSyncSourceSchemaEnvelope.js +1 -3
- package/api/types/BulkSyncSourceStatus.d.ts +3 -6
- package/api/types/BulkSyncSourceStatus.js +1 -3
- package/api/types/BulkSyncSourceStatusEnvelope.d.ts +2 -5
- package/api/types/BulkSyncSourceStatusEnvelope.js +1 -3
- package/api/types/BulkSyncStatusEnvelope.d.ts +2 -5
- package/api/types/BulkSyncStatusEnvelope.js +1 -3
- package/api/types/BulkSyncStatusResponse.d.ts +5 -8
- package/api/types/BulkSyncStatusResponse.js +1 -3
- package/api/types/BulkSyncTargetMode.d.ts +5 -0
- package/api/types/BulkSyncTargetMode.js +8 -0
- package/api/types/CancelBulkSyncResponse.d.ts +1 -4
- package/api/types/CancelBulkSyncResponse.js +1 -3
- package/api/types/CancelBulkSyncResponseEnvelope.d.ts +2 -5
- package/api/types/CancelBulkSyncResponseEnvelope.js +1 -3
- package/api/types/CancelSyncExecutionResponse.d.ts +3 -0
- package/api/types/CancelSyncExecutionResponse.js +3 -0
- package/api/types/CancelSyncExecutionResponseEnvelope.d.ts +4 -0
- package/api/types/CancelSyncExecutionResponseEnvelope.js +3 -0
- package/api/types/CancelSyncResponse.d.ts +3 -0
- package/api/types/CancelSyncResponse.js +3 -0
- package/api/types/CancelSyncResponseEnvelope.d.ts +4 -0
- package/api/types/CancelSyncResponseEnvelope.js +3 -0
- package/api/types/ConfigurationValue.d.ts +2 -5
- package/api/types/ConfigurationValue.js +1 -3
- package/api/types/ConnectCardResponse.d.ts +2 -5
- package/api/types/ConnectCardResponse.js +1 -3
- package/api/types/ConnectCardResponseEnvelope.d.ts +2 -5
- package/api/types/ConnectCardResponseEnvelope.js +1 -3
- package/api/types/ConnectionForm.d.ts +4 -0
- package/api/types/ConnectionForm.js +3 -0
- package/api/types/ConnectionListResponseEnvelope.d.ts +2 -5
- package/api/types/ConnectionListResponseEnvelope.js +1 -3
- package/api/types/ConnectionParameterValue.d.ts +2 -5
- package/api/types/ConnectionParameterValue.js +1 -3
- package/api/types/ConnectionParameterValuesResp.d.ts +3 -6
- package/api/types/ConnectionParameterValuesResp.js +1 -3
- package/api/types/ConnectionParameterValuesResponseEnvelope.d.ts +2 -5
- package/api/types/ConnectionParameterValuesResponseEnvelope.js +1 -3
- package/api/types/ConnectionProxyCall.d.ts +14 -0
- package/api/types/ConnectionProxyCall.js +3 -0
- package/api/types/ConnectionProxyContract.d.ts +26 -0
- package/api/types/ConnectionProxyContract.js +3 -0
- package/api/types/ConnectionProxyInfoResponse.d.ts +11 -0
- package/api/types/ConnectionProxyInfoResponse.js +3 -0
- package/api/types/ConnectionProxyInheritedBase.d.ts +9 -0
- package/api/types/ConnectionProxyInheritedBase.js +3 -0
- package/api/types/ConnectionProxyLockedHeader.d.ts +8 -0
- package/api/types/ConnectionProxyLockedHeader.js +3 -0
- package/api/types/ConnectionProxyMergeRules.d.ts +6 -0
- package/api/types/ConnectionProxyMergeRules.js +3 -0
- package/api/types/ConnectionProxyResponse.d.ts +16 -0
- package/api/types/ConnectionProxyResponse.js +3 -0
- package/api/types/ConnectionProxyStats.d.ts +14 -0
- package/api/types/ConnectionProxyStats.js +3 -0
- package/api/types/ConnectionResponseEnvelope.d.ts +2 -5
- package/api/types/ConnectionResponseEnvelope.js +1 -3
- package/api/types/ConnectionResponseSchema.d.ts +16 -19
- package/api/types/ConnectionResponseSchema.js +1 -3
- package/api/types/ConnectionType.d.ts +9 -12
- package/api/types/ConnectionType.js +1 -3
- package/api/types/ConnectionTypeResponseEnvelope.d.ts +2 -5
- package/api/types/ConnectionTypeResponseEnvelope.js +1 -3
- package/api/types/ConnectionTypeSchema.d.ts +4 -7
- package/api/types/ConnectionTypeSchema.js +1 -3
- package/api/types/CreateConnectionResponseEnvelope.d.ts +2 -5
- package/api/types/CreateConnectionResponseEnvelope.js +1 -3
- package/api/types/CreateConnectionResponseSchema.d.ts +13 -16
- package/api/types/CreateConnectionResponseSchema.js +1 -3
- package/api/types/CreateModelRequest.d.ts +10 -13
- package/api/types/CreateModelRequest.js +1 -3
- package/api/types/CreateSharedConnectionResponseEnvelope.d.ts +4 -0
- package/api/types/CreateSharedConnectionResponseEnvelope.js +3 -0
- package/api/types/CreateSharedConnectionResponseSchema.d.ts +1 -4
- package/api/types/CreateSharedConnectionResponseSchema.js +1 -3
- package/api/types/EnricherConfiguration.d.ts +4 -0
- package/api/types/EnricherConfiguration.js +3 -0
- package/api/types/EnricherMapping.d.ts +4 -0
- package/api/types/EnricherMapping.js +3 -0
- package/api/types/Enrichment.d.ts +6 -9
- package/api/types/Enrichment.js +1 -3
- package/api/types/EntityRelationship.d.ts +6 -0
- package/api/types/EntityRelationship.js +3 -0
- package/api/types/EntityResponse.d.ts +15 -0
- package/api/types/EntityResponse.js +3 -0
- package/api/types/EntityResponseEnvelope.d.ts +4 -0
- package/api/types/EntityResponseEnvelope.js +3 -0
- package/api/types/Event.d.ts +6 -9
- package/api/types/Event.js +1 -3
- package/api/types/EventPayload.d.ts +2 -0
- package/api/types/EventPayload.js +3 -0
- package/api/types/EventTypesEnvelope.d.ts +1 -4
- package/api/types/EventTypesEnvelope.js +1 -3
- package/api/types/EventingBulkSyncCanceledEvent.d.ts +8 -0
- package/api/types/EventingBulkSyncCanceledEvent.js +3 -0
- package/api/types/EventingBulkSyncCompletedEvent.d.ts +9 -0
- package/api/types/EventingBulkSyncCompletedEvent.js +3 -0
- package/api/types/EventingBulkSyncCompletedWithErrorEvent.d.ts +9 -0
- package/api/types/EventingBulkSyncCompletedWithErrorEvent.js +3 -0
- package/api/types/EventingBulkSyncFailedEvent.d.ts +10 -0
- package/api/types/EventingBulkSyncFailedEvent.js +3 -0
- package/api/types/EventingBulkSyncRunningEvent.d.ts +8 -0
- package/api/types/EventingBulkSyncRunningEvent.js +3 -0
- package/api/types/EventingSyncCanceledEvent.d.ts +9 -0
- package/api/types/EventingSyncCanceledEvent.js +3 -0
- package/api/types/EventingSyncCompletedEvent.d.ts +22 -0
- package/api/types/EventingSyncCompletedEvent.js +3 -0
- package/api/types/EventingSyncCompletedWithErrorsEvent.d.ts +10 -0
- package/api/types/EventingSyncCompletedWithErrorsEvent.js +3 -0
- package/api/types/EventingSyncFailedEvent.d.ts +8 -0
- package/api/types/EventingSyncFailedEvent.js +3 -0
- package/api/types/EventingSyncRunningEvent.d.ts +7 -0
- package/api/types/EventingSyncRunningEvent.js +3 -0
- package/api/types/EventsEnvelope.d.ts +2 -5
- package/api/types/EventsEnvelope.js +1 -3
- package/api/types/ExecuteConnectionProxyEnvelope.d.ts +4 -0
- package/api/types/ExecuteConnectionProxyEnvelope.js +3 -0
- package/api/types/ExecutionConsoleLogEntry.d.ts +7 -0
- package/api/types/ExecutionConsoleLogEntry.js +3 -0
- package/api/types/ExecutionConsoleLogsResponse.d.ts +5 -0
- package/api/types/ExecutionConsoleLogsResponse.js +3 -0
- package/api/types/ExecutionConsoleLogsResponseEnvelope.d.ts +4 -0
- package/api/types/ExecutionConsoleLogsResponseEnvelope.js +3 -0
- package/api/types/ExecutionCounts.d.ts +7 -10
- package/api/types/ExecutionCounts.js +1 -3
- package/api/types/ExecutionLogResponse.d.ts +2 -5
- package/api/types/ExecutionLogResponse.js +1 -3
- package/api/types/ExecutionLogType.d.ts +9 -0
- package/api/types/ExecutionLogType.js +12 -0
- package/api/types/ExecutionLogsResponseEnvelope.d.ts +2 -5
- package/api/types/ExecutionLogsResponseEnvelope.js +1 -3
- package/api/types/ExportSyncLogsEnvelope.d.ts +5 -0
- package/api/types/ExportSyncLogsEnvelope.js +3 -0
- package/api/types/ExportSyncLogsResponse.d.ts +4 -0
- package/api/types/ExportSyncLogsResponse.js +3 -0
- package/api/types/FieldConfiguration.d.ts +3 -6
- package/api/types/FieldConfiguration.js +1 -3
- package/api/types/Filter.d.ts +6 -9
- package/api/types/Filter.js +1 -3
- package/api/types/FilterFieldReferenceType.d.ts +1 -4
- package/api/types/FilterFieldReferenceType.js +1 -3
- package/api/types/FilterFunction.d.ts +1 -4
- package/api/types/FilterFunction.js +1 -3
- package/api/types/GetConnectionProxyInfoEnvelope.d.ts +4 -0
- package/api/types/GetConnectionProxyInfoEnvelope.js +3 -0
- package/api/types/GetEnrichmentInputFieldsResponseEnvelope.d.ts +3 -0
- package/api/types/GetEnrichmentInputFieldsResponseEnvelope.js +3 -0
- package/api/types/GetExecutionResponseEnvelope.d.ts +2 -5
- package/api/types/GetExecutionResponseEnvelope.js +1 -3
- package/api/types/GetExecutionResponseSchema.d.ts +9 -12
- package/api/types/GetExecutionResponseSchema.js +1 -3
- package/api/types/GetIdentityResponseEnvelope.d.ts +2 -5
- package/api/types/GetIdentityResponseEnvelope.js +1 -3
- package/api/types/GetIdentityResponseSchema.d.ts +9 -12
- package/api/types/GetIdentityResponseSchema.js +1 -3
- package/api/types/GetSyncSourceMetaEnvelope.d.ts +4 -0
- package/api/types/GetSyncSourceMetaEnvelope.js +3 -0
- package/api/types/GlobalErrorSubscribersResponse.d.ts +4 -0
- package/api/types/GlobalErrorSubscribersResponse.js +3 -0
- package/api/types/Identity.d.ts +3 -6
- package/api/types/Identity.js +1 -3
- package/api/types/IdentityFunction.d.ts +2 -5
- package/api/types/IdentityFunction.js +1 -3
- package/api/types/IngestionStatusLevel.d.ts +2 -7
- package/api/types/IngestionStatusLevel.js +2 -3
- package/api/types/JobResponse.d.ts +7 -9
- package/api/types/JobResponse.js +1 -3
- package/api/types/JobResponseEnvelope.d.ts +2 -5
- package/api/types/JobResponseEnvelope.js +1 -3
- package/api/types/JsonschemaDefinitions.d.ts +2 -5
- package/api/types/JsonschemaDefinitions.js +1 -3
- package/api/types/JsonschemaForm.d.ts +1 -4
- package/api/types/JsonschemaForm.js +1 -3
- package/api/types/JsonschemaSchema.d.ts +54 -57
- package/api/types/JsonschemaSchema.js +1 -3
- package/api/types/LabelLabel.d.ts +1 -4
- package/api/types/LabelLabel.js +1 -3
- package/api/types/ListBulkSchemaEnvelope.d.ts +4 -0
- package/api/types/ListBulkSchemaEnvelope.js +3 -0
- package/api/types/ListBulkSyncExecutionsEnvelope.d.ts +3 -6
- package/api/types/ListBulkSyncExecutionsEnvelope.js +1 -3
- package/api/types/ListBulkSyncExecutionsStatusEnvelope.d.ts +4 -0
- package/api/types/ListBulkSyncExecutionsStatusEnvelope.js +3 -0
- package/api/types/ListExecutionResponseEnvelope.d.ts +3 -6
- package/api/types/ListExecutionResponseEnvelope.js +1 -3
- package/api/types/ListPoliciesResponseEnvelope.d.ts +2 -5
- package/api/types/ListPoliciesResponseEnvelope.js +1 -3
- package/api/types/ListSyncItem.d.ts +32 -0
- package/api/types/ListSyncItem.js +3 -0
- package/api/types/ListSyncResponseEnvelope.d.ts +5 -0
- package/api/types/ListSyncResponseEnvelope.js +3 -0
- package/api/types/ListUsersEnvelope.d.ts +2 -5
- package/api/types/ListUsersEnvelope.js +1 -3
- package/api/types/Mode.d.ts +6 -9
- package/api/types/Mode.js +1 -3
- package/api/types/ModelField.d.ts +13 -16
- package/api/types/ModelField.js +1 -3
- package/api/types/ModelFieldResponse.d.ts +2 -5
- package/api/types/ModelFieldResponse.js +1 -3
- package/api/types/ModelListResponseEnvelope.d.ts +2 -5
- package/api/types/ModelListResponseEnvelope.js +1 -3
- package/api/types/ModelModelFieldRequest.d.ts +1 -4
- package/api/types/ModelModelFieldRequest.js +1 -3
- package/api/types/ModelRelation.d.ts +3 -6
- package/api/types/ModelRelation.js +1 -3
- package/api/types/ModelRelationTo.d.ts +2 -5
- package/api/types/ModelRelationTo.js +1 -3
- package/api/types/ModelResponse.d.ts +19 -22
- package/api/types/ModelResponse.js +1 -3
- package/api/types/ModelResponseEnvelope.d.ts +3 -6
- package/api/types/ModelResponseEnvelope.js +1 -3
- package/api/types/ModelSample.d.ts +3 -6
- package/api/types/ModelSample.js +1 -3
- package/api/types/ModelSampleResponseEnvelope.d.ts +3 -6
- package/api/types/ModelSampleResponseEnvelope.js +1 -3
- package/api/types/ModelsyncSyncTargetMode.d.ts +10 -0
- package/api/types/ModelsyncSyncTargetMode.js +13 -0
- package/api/types/OrderedMapStringGithubComInvopopJsonschemaSchema.d.ts +1 -0
- package/api/types/OrderedMapStringGithubComInvopopJsonschemaSchema.js +3 -0
- package/api/types/Organization.d.ts +5 -8
- package/api/types/Organization.js +1 -3
- package/api/types/OrganizationEnvelope.d.ts +2 -5
- package/api/types/OrganizationEnvelope.js +1 -3
- package/api/types/OrganizationsEnvelope.d.ts +2 -5
- package/api/types/OrganizationsEnvelope.js +1 -3
- package/api/types/OutputActor.d.ts +3 -6
- package/api/types/OutputActor.js +1 -3
- package/api/types/Override.d.ts +6 -9
- package/api/types/Override.js +1 -3
- package/api/types/PaginationDetails.d.ts +1 -4
- package/api/types/PaginationDetails.js +1 -3
- package/api/types/PickValue.d.ts +2 -5
- package/api/types/PickValue.js +1 -3
- package/api/types/PolicyAction.d.ts +1 -4
- package/api/types/PolicyAction.js +1 -3
- package/api/types/PolicyResponse.d.ts +6 -9
- package/api/types/PolicyResponse.js +1 -3
- package/api/types/PolicyResponseEnvelope.d.ts +2 -5
- package/api/types/PolicyResponseEnvelope.js +1 -3
- package/api/types/QueryResultsEnvelope.d.ts +5 -0
- package/api/types/QueryResultsEnvelope.js +3 -0
- package/api/types/Relation.d.ts +3 -6
- package/api/types/Relation.js +1 -3
- package/api/types/RelationTo.d.ts +2 -5
- package/api/types/RelationTo.js +1 -3
- package/api/types/RoleListResponseEnvelope.d.ts +2 -5
- package/api/types/RoleListResponseEnvelope.js +1 -3
- package/api/types/RoleResponse.d.ts +4 -7
- package/api/types/RoleResponse.js +1 -3
- package/api/types/RoleResponseEnvelope.d.ts +2 -5
- package/api/types/RoleResponseEnvelope.js +1 -3
- package/api/types/RunAfter.d.ts +2 -5
- package/api/types/RunAfter.js +1 -3
- package/api/types/RunQueryEnvelope.d.ts +4 -0
- package/api/types/RunQueryEnvelope.js +3 -0
- package/api/types/RunQueryPagination.d.ts +6 -0
- package/api/types/RunQueryPagination.js +3 -0
- package/api/types/RunQueryResult.d.ts +16 -0
- package/api/types/RunQueryResult.js +3 -0
- package/api/types/SampleRecord.d.ts +4 -0
- package/api/types/SampleRecord.js +3 -0
- package/api/types/Schedule.d.ts +11 -14
- package/api/types/Schedule.js +1 -3
- package/api/types/ScheduleEnvelope.d.ts +2 -5
- package/api/types/ScheduleEnvelope.js +1 -3
- package/api/types/ScheduleFrequency.d.ts +1 -4
- package/api/types/ScheduleFrequency.js +1 -3
- package/api/types/ScheduleOptionResponse.d.ts +2 -5
- package/api/types/ScheduleOptionResponse.js +1 -3
- package/api/types/ScheduleOptionResponseEnvelope.d.ts +2 -5
- package/api/types/ScheduleOptionResponseEnvelope.js +1 -3
- package/api/types/ScheduleScheduleOption.d.ts +5 -8
- package/api/types/ScheduleScheduleOption.js +1 -3
- package/api/types/SchedulesEnvelope.d.ts +2 -5
- package/api/types/SchedulesEnvelope.js +1 -3
- package/api/types/Schema.d.ts +4 -7
- package/api/types/Schema.js +1 -3
- package/api/types/SchemaAssociation.d.ts +4 -7
- package/api/types/SchemaAssociation.js +1 -3
- package/api/types/SchemaConfiguration.d.ts +15 -12
- package/api/types/SchemaConfiguration.js +1 -3
- package/api/types/SchemaField.d.ts +8 -11
- package/api/types/SchemaField.js +1 -3
- package/api/types/SchemaIdentityFunction.d.ts +1 -4
- package/api/types/SchemaIdentityFunction.js +1 -3
- package/api/types/SchemaPrimaryKeyOverrideInput.d.ts +0 -3
- package/api/types/SchemaPrimaryKeyOverrideInput.js +1 -3
- package/api/types/SchemaRecordsResponseEnvelope.d.ts +1 -4
- package/api/types/SchemaRecordsResponseEnvelope.js +1 -3
- package/api/types/Source.d.ts +0 -3
- package/api/types/Source.js +1 -3
- package/api/types/SourceMeta.d.ts +3 -6
- package/api/types/SourceMeta.js +1 -3
- package/api/types/StartSyncResponseEnvelope.d.ts +4 -0
- package/api/types/StartSyncResponseEnvelope.js +3 -0
- package/api/types/StartSyncResponseSchema.d.ts +7 -0
- package/api/types/StartSyncResponseSchema.js +3 -0
- package/api/types/SupportedBulkMode.d.ts +7 -10
- package/api/types/SupportedBulkMode.js +1 -3
- package/api/types/SupportedMode.d.ts +5 -8
- package/api/types/SupportedMode.js +1 -3
- package/api/types/SyncDestinationProperties.d.ts +13 -16
- package/api/types/SyncDestinationProperties.js +1 -3
- package/api/types/SyncField.d.ts +14 -0
- package/api/types/SyncField.js +3 -0
- package/api/types/SyncResponse.d.ts +27 -0
- package/api/types/SyncResponse.js +3 -0
- package/api/types/SyncResponseEnvelope.d.ts +4 -0
- package/api/types/SyncResponseEnvelope.js +3 -0
- package/api/types/SyncSourceMetaResponse.d.ts +9 -0
- package/api/types/SyncSourceMetaResponse.js +3 -0
- package/api/types/SyncStatusEnvelope.d.ts +2 -5
- package/api/types/SyncStatusEnvelope.js +1 -3
- package/api/types/SyncStatusResponse.d.ts +4 -7
- package/api/types/SyncStatusResponse.js +1 -3
- package/api/types/Target.d.ts +6 -9
- package/api/types/Target.js +1 -3
- package/api/types/TargetCreateInput.d.ts +3 -6
- package/api/types/TargetCreateInput.js +1 -3
- package/api/types/TargetCreator.d.ts +7 -0
- package/api/types/TargetCreator.js +3 -0
- package/api/types/TargetField.d.ts +14 -17
- package/api/types/TargetField.js +1 -3
- package/api/types/TargetObject.d.ts +4 -7
- package/api/types/TargetObject.js +1 -3
- package/api/types/TargetObjectsResponseEnvelope.d.ts +5 -0
- package/api/types/TargetObjectsResponseEnvelope.js +3 -0
- package/api/types/TargetPropertyValues.d.ts +11 -0
- package/api/types/TargetPropertyValues.js +3 -0
- package/api/types/TargetPropertyValuesEnvelope.d.ts +4 -0
- package/api/types/TargetPropertyValuesEnvelope.js +3 -0
- package/api/types/TargetResponse.d.ts +7 -10
- package/api/types/TargetResponse.js +1 -3
- package/api/types/TargetResponseEnvelope.d.ts +2 -5
- package/api/types/TargetResponseEnvelope.js +1 -3
- package/api/types/TypesType.d.ts +1 -4
- package/api/types/TypesType.js +1 -3
- package/api/types/UpdateBulkField.d.ts +4 -7
- package/api/types/UpdateBulkField.js +1 -3
- package/api/types/UpdateBulkSyncSchemasEnvelope.d.ts +4 -0
- package/api/types/UpdateBulkSyncSchemasEnvelope.js +3 -0
- package/api/types/User.d.ts +5 -8
- package/api/types/User.js +1 -3
- package/api/types/UserEnvelope.d.ts +2 -5
- package/api/types/UserEnvelope.js +1 -3
- package/api/types/UserFieldRequest.d.ts +12 -0
- package/api/types/UserFieldRequest.js +3 -0
- package/api/types/UtilEnumValue.d.ts +2 -5
- package/api/types/UtilEnumValue.js +1 -3
- package/api/types/UtilExecutionStatus.d.ts +14 -0
- package/api/types/UtilExecutionStatus.js +17 -0
- package/api/types/UtilFieldType.d.ts +1 -4
- package/api/types/UtilFieldType.js +1 -3
- package/api/types/Webhook.d.ts +6 -9
- package/api/types/Webhook.js +1 -3
- package/api/types/WebhookEnvelope.d.ts +2 -5
- package/api/types/WebhookEnvelope.js +1 -3
- package/api/types/WebhookListEnvelope.d.ts +2 -5
- package/api/types/WebhookListEnvelope.js +1 -3
- package/api/types/WorkTaskStatus.d.ts +1 -4
- package/api/types/WorkTaskStatus.js +1 -3
- package/api/types/index.d.ts +136 -119
- package/api/types/index.js +136 -119
- package/auth/BearerAuthProvider.d.ts +20 -0
- package/auth/BearerAuthProvider.js +79 -0
- package/auth/index.d.ts +1 -0
- package/auth/index.js +5 -0
- package/core/auth/AuthProvider.d.ts +7 -0
- package/core/auth/AuthRequest.d.ts +9 -0
- package/core/auth/BasicAuth.d.ts +2 -2
- package/core/auth/BasicAuth.js +11 -4
- package/core/auth/BearerToken.d.ts +4 -2
- package/core/auth/BearerToken.js +7 -6
- package/core/auth/NoOpAuthProvider.d.ts +5 -0
- package/core/auth/NoOpAuthProvider.js +9 -0
- package/core/auth/index.d.ts +3 -0
- package/core/auth/index.js +3 -1
- package/core/base64.d.ts +2 -0
- package/core/base64.js +26 -0
- package/core/exports.d.ts +1 -0
- package/core/exports.js +17 -0
- package/core/fetcher/APIResponse.d.ts +11 -1
- package/core/fetcher/BinaryResponse.d.ts +19 -0
- package/core/fetcher/BinaryResponse.js +17 -0
- package/core/fetcher/EndpointMetadata.d.ts +13 -0
- package/core/fetcher/EndpointSupplier.d.ts +12 -0
- package/core/fetcher/EndpointSupplier.js +22 -0
- package/core/fetcher/Fetcher.d.ts +26 -6
- package/core/fetcher/Fetcher.js +251 -193
- package/core/fetcher/Headers.d.ts +2 -0
- package/core/fetcher/Headers.js +84 -0
- package/core/fetcher/HttpResponsePromise.d.ts +58 -0
- package/core/fetcher/HttpResponsePromise.js +103 -0
- package/core/fetcher/RawResponse.d.ts +29 -0
- package/core/fetcher/RawResponse.js +44 -0
- package/core/fetcher/Supplier.d.ts +1 -1
- package/core/fetcher/createRequestUrl.d.ts +1 -0
- package/core/fetcher/createRequestUrl.js +8 -0
- package/core/fetcher/getErrorResponseBody.d.ts +1 -0
- package/core/fetcher/getErrorResponseBody.js +45 -0
- package/core/fetcher/getFetchFn.d.ts +1 -0
- package/core/fetcher/getFetchFn.js +17 -0
- package/core/fetcher/getHeader.js +1 -2
- package/core/fetcher/getRequestBody.d.ts +7 -0
- package/core/fetcher/getRequestBody.js +27 -0
- package/core/fetcher/getResponseBody.d.ts +1 -0
- package/core/fetcher/getResponseBody.js +69 -0
- package/core/fetcher/index.d.ts +9 -1
- package/core/fetcher/index.js +11 -1
- package/core/fetcher/makePassthroughRequest.d.ts +49 -0
- package/core/fetcher/makePassthroughRequest.js +135 -0
- package/core/fetcher/makeRequest.d.ts +6 -0
- package/core/fetcher/makeRequest.js +61 -0
- package/core/fetcher/requestWithRetries.d.ts +1 -0
- package/core/fetcher/requestWithRetries.js +67 -0
- package/core/fetcher/signals.d.ts +5 -0
- package/core/fetcher/signals.js +24 -0
- package/core/headers.d.ts +2 -0
- package/core/headers.js +31 -0
- package/core/index.d.ts +4 -1
- package/core/index.js +27 -1
- package/core/json.d.ts +15 -0
- package/core/json.js +24 -0
- package/core/logging/exports.d.ts +18 -0
- package/core/logging/exports.js +45 -0
- package/core/logging/index.d.ts +1 -0
- package/core/logging/index.js +17 -0
- package/core/logging/logger.d.ts +126 -0
- package/core/logging/logger.js +144 -0
- package/core/runtime/runtime.d.ts +2 -1
- package/core/runtime/runtime.js +58 -46
- package/core/url/QueryStringBuilder.d.ts +47 -0
- package/core/url/QueryStringBuilder.js +83 -0
- package/core/url/encodePathParam.d.ts +1 -0
- package/core/url/encodePathParam.js +21 -0
- package/core/url/index.d.ts +4 -0
- package/core/url/index.js +11 -0
- package/core/url/join.d.ts +1 -0
- package/core/url/join.js +68 -0
- package/core/url/qs.d.ts +7 -0
- package/core/url/qs.js +76 -0
- package/environments.d.ts +1 -4
- package/environments.js +1 -3
- package/errors/PolytomicError.d.ts +6 -4
- package/errors/PolytomicError.js +14 -11
- package/errors/PolytomicTimeoutError.d.ts +4 -4
- package/errors/PolytomicTimeoutError.js +11 -6
- package/errors/handleNonStatusCodeError.d.ts +2 -0
- package/errors/handleNonStatusCodeError.js +68 -0
- package/exports.d.ts +1 -0
- package/exports.js +17 -0
- package/index.d.ts +2 -0
- package/index.js +20 -6
- package/package.json +34 -26
- package/reference.md +9926 -0
- package/version.d.ts +1 -0
- package/version.js +4 -0
- package/api/resources/bulkSync/resources/schemas/client/requests/BulkSyncSchemasRequest.d.ts +0 -12
- package/api/resources/bulkSync/resources/schemas/client/requests/BulkSyncSchemasRequest.js +0 -5
- package/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItem.d.ts +0 -5
- package/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItem.js +0 -5
- package/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItem.d.ts +0 -5
- package/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItem.js +0 -5
- package/api/resources/bulkSync/types/index.d.ts +0 -2
- package/api/resources/bulkSync/types/index.js +0 -18
- package/api/resources/connections/client/requests/ApiRequest.d.ts +0 -13
- package/api/resources/connections/client/requests/ApiRequest.js +0 -5
- package/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +0 -48
- package/api/resources/modelSync/client/requests/CreateModelSyncRequest.js +0 -5
- package/api/resources/modelSync/client/requests/StartModelSyncRequest.d.ts +0 -12
- package/api/resources/modelSync/client/requests/StartModelSyncRequest.js +0 -5
- package/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +0 -48
- package/api/resources/modelSync/client/requests/UpdateModelSyncRequest.js +0 -5
- package/api/resources/modelSync/resources/executions/client/requests/UpdateExecutionRequest.d.ts +0 -13
- package/api/resources/modelSync/resources/executions/client/requests/UpdateExecutionRequest.js +0 -5
- package/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetRequest.d.ts +0 -17
- package/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetRequest.js +0 -5
- package/api/resources/models/client/requests/GetEnrichmentInputFieldsRequest.d.ts +0 -11
- package/api/resources/models/client/requests/GetEnrichmentInputFieldsRequest.js +0 -5
- package/api/resources/notifications/client/requests/V4GlobalErrorSubscribersRequest.d.ts +0 -11
- package/api/resources/notifications/client/requests/V4GlobalErrorSubscribersRequest.js +0 -5
- package/api/resources/queryRunner/client/requests/V4RunQueryRequest.d.ts +0 -15
- package/api/resources/queryRunner/client/requests/V4RunQueryRequest.js +0 -5
- package/api/types/BulkItemizedSchedule.d.ts +0 -8
- package/api/types/BulkItemizedSchedule.js +0 -5
- package/api/types/BulkMultiScheduleConfiguration.d.ts +0 -8
- package/api/types/BulkMultiScheduleConfiguration.js +0 -5
- package/api/types/BulkSchedule.d.ts +0 -13
- package/api/types/BulkSchedule.js +0 -5
- package/api/types/BulkSyncCanceledEvent.d.ts +0 -11
- package/api/types/BulkSyncCanceledEvent.js +0 -5
- package/api/types/BulkSyncCompletedEvent.d.ts +0 -12
- package/api/types/BulkSyncCompletedEvent.js +0 -5
- package/api/types/BulkSyncCompletedWithErrorEvent.d.ts +0 -12
- package/api/types/BulkSyncCompletedWithErrorEvent.js +0 -5
- package/api/types/BulkSyncFailedEvent.d.ts +0 -13
- package/api/types/BulkSyncFailedEvent.js +0 -5
- package/api/types/BulkSyncMode.d.ts +0 -11
- package/api/types/BulkSyncMode.js +0 -10
- package/api/types/BulkSyncRunningEvent.d.ts +0 -11
- package/api/types/BulkSyncRunningEvent.js +0 -5
- package/api/types/CancelModelSyncResponse.d.ts +0 -6
- package/api/types/CancelModelSyncResponse.js +0 -5
- package/api/types/CancelModelSyncResponseEnvelope.d.ts +0 -7
- package/api/types/CancelModelSyncResponseEnvelope.js +0 -5
- package/api/types/ConnectionMeta.d.ts +0 -8
- package/api/types/ConnectionMeta.js +0 -5
- package/api/types/ConnectionMetaResponse.d.ts +0 -9
- package/api/types/ConnectionMetaResponse.js +0 -5
- package/api/types/EventBody.d.ts +0 -5
- package/api/types/EventBody.js +0 -5
- package/api/types/ExecutionStatus.d.ts +0 -17
- package/api/types/ExecutionStatus.js +0 -19
- package/api/types/GetConnectionMetaEnvelope.d.ts +0 -7
- package/api/types/GetConnectionMetaEnvelope.js +0 -5
- package/api/types/GetModelSyncSourceMetaEnvelope.d.ts +0 -7
- package/api/types/GetModelSyncSourceMetaEnvelope.js +0 -5
- package/api/types/ListBulkSchema.d.ts +0 -7
- package/api/types/ListBulkSchema.js +0 -5
- package/api/types/ListBulkSyncExecutionStatusEnvelope.d.ts +0 -7
- package/api/types/ListBulkSyncExecutionStatusEnvelope.js +0 -5
- package/api/types/ListModelSyncResponseEnvelope.d.ts +0 -7
- package/api/types/ListModelSyncResponseEnvelope.js +0 -5
- package/api/types/ModelSyncField.d.ts +0 -17
- package/api/types/ModelSyncField.js +0 -5
- package/api/types/ModelSyncMode.d.ts +0 -16
- package/api/types/ModelSyncMode.js +0 -15
- package/api/types/ModelSyncResponse.d.ts +0 -30
- package/api/types/ModelSyncResponse.js +0 -5
- package/api/types/ModelSyncResponseEnvelope.d.ts +0 -7
- package/api/types/ModelSyncResponseEnvelope.js +0 -5
- package/api/types/ModelSyncSourceMetaResponse.d.ts +0 -12
- package/api/types/ModelSyncSourceMetaResponse.js +0 -5
- package/api/types/Pagination.d.ts +0 -9
- package/api/types/Pagination.js +0 -5
- package/api/types/RestErrResponse.d.ts +0 -13
- package/api/types/RestErrResponse.js +0 -5
- package/api/types/StartModelSyncResponseEnvelope.d.ts +0 -7
- package/api/types/StartModelSyncResponseEnvelope.js +0 -5
- package/api/types/StartModelSyncResponseSchema.d.ts +0 -10
- package/api/types/StartModelSyncResponseSchema.js +0 -5
- package/api/types/SyncCanceledEvent.d.ts +0 -12
- package/api/types/SyncCanceledEvent.js +0 -5
- package/api/types/SyncCompletedEvent.d.ts +0 -25
- package/api/types/SyncCompletedEvent.js +0 -5
- package/api/types/SyncCompletedWithErrorsEvent.d.ts +0 -13
- package/api/types/SyncCompletedWithErrorsEvent.js +0 -5
- package/api/types/SyncFailedEvent.d.ts +0 -11
- package/api/types/SyncFailedEvent.js +0 -5
- package/api/types/SyncRunningEvent.d.ts +0 -10
- package/api/types/SyncRunningEvent.js +0 -5
- package/api/types/V2ConnectionForm.d.ts +0 -7
- package/api/types/V2ConnectionForm.js +0 -5
- package/api/types/V2CreateSharedConnectionResponseEnvelope.d.ts +0 -7
- package/api/types/V2CreateSharedConnectionResponseEnvelope.js +0 -5
- package/api/types/V2EnricherConfiguration.d.ts +0 -7
- package/api/types/V2EnricherConfiguration.js +0 -5
- package/api/types/V2EnricherMapping.d.ts +0 -7
- package/api/types/V2EnricherMapping.js +0 -5
- package/api/types/V2ExecutionLogType.d.ts +0 -12
- package/api/types/V2ExecutionLogType.js +0 -14
- package/api/types/V2GetEnrichmentInputFieldsResponseEnvelope.d.ts +0 -6
- package/api/types/V2GetEnrichmentInputFieldsResponseEnvelope.js +0 -5
- package/api/types/V2OrderedMapStringGithubComInvopopJsonschemaSchema.d.ts +0 -4
- package/api/types/V2OrderedMapStringGithubComInvopopJsonschemaSchema.js +0 -5
- package/api/types/V2SampleRecord.d.ts +0 -7
- package/api/types/V2SampleRecord.js +0 -5
- package/api/types/V2SchemaConfigurationFieldsItem.d.ts +0 -5
- package/api/types/V2SchemaConfigurationFieldsItem.js +0 -5
- package/api/types/V3BulkSyncSourceCapabilities.d.ts +0 -6
- package/api/types/V3BulkSyncSourceCapabilities.js +0 -5
- package/api/types/V4BulkSyncExecutionLogs.d.ts +0 -9
- package/api/types/V4BulkSyncExecutionLogs.js +0 -5
- package/api/types/V4BulkSyncExecutionLogsEnvelope.d.ts +0 -7
- package/api/types/V4BulkSyncExecutionLogsEnvelope.js +0 -5
- package/api/types/V4BulkSyncScheduleApi.d.ts +0 -18
- package/api/types/V4BulkSyncScheduleApi.js +0 -5
- package/api/types/V4ExportSyncLogsEnvelope.d.ts +0 -8
- package/api/types/V4ExportSyncLogsEnvelope.js +0 -5
- package/api/types/V4ExportSyncLogsResponse.d.ts +0 -7
- package/api/types/V4ExportSyncLogsResponse.js +0 -5
- package/api/types/V4GlobalErrorSubscribersResponse.d.ts +0 -7
- package/api/types/V4GlobalErrorSubscribersResponse.js +0 -5
- package/api/types/V4QueryResultsEnvelope.d.ts +0 -8
- package/api/types/V4QueryResultsEnvelope.js +0 -5
- package/api/types/V4RunQueryEnvelope.d.ts +0 -7
- package/api/types/V4RunQueryEnvelope.js +0 -5
- package/api/types/V4RunQueryResult.d.ts +0 -19
- package/api/types/V4RunQueryResult.js +0 -5
- package/api/types/V4TargetCreator.d.ts +0 -10
- package/api/types/V4TargetCreator.js +0 -5
- package/api/types/V4TargetObjectsResponseEnvelope.d.ts +0 -8
- package/api/types/V4TargetObjectsResponseEnvelope.js +0 -5
- package/api/types/V4TargetPropertyValues.d.ts +0 -14
- package/api/types/V4TargetPropertyValues.js +0 -5
- package/api/types/V4TargetPropertyValuesEnvelope.d.ts +0 -7
- package/api/types/V4TargetPropertyValuesEnvelope.js +0 -5
- package/api/types/V4UserFieldRequest.d.ts +0 -14
- package/api/types/V4UserFieldRequest.js +0 -5
- package/dist/Client.d.ts +0 -68
- package/dist/Client.js +0 -82
- package/dist/api/errors/BadRequestError.d.ts +0 -8
- package/dist/api/errors/BadRequestError.js +0 -41
- package/dist/api/errors/ConflictError.d.ts +0 -8
- package/dist/api/errors/ConflictError.js +0 -41
- package/dist/api/errors/ForbiddenError.d.ts +0 -8
- package/dist/api/errors/ForbiddenError.js +0 -41
- package/dist/api/errors/InternalServerError.d.ts +0 -8
- package/dist/api/errors/InternalServerError.js +0 -41
- package/dist/api/errors/NotFoundError.d.ts +0 -8
- package/dist/api/errors/NotFoundError.js +0 -41
- package/dist/api/errors/UnauthorizedError.d.ts +0 -8
- package/dist/api/errors/UnauthorizedError.js +0 -41
- package/dist/api/errors/UnprocessableEntityError.d.ts +0 -8
- package/dist/api/errors/UnprocessableEntityError.js +0 -41
- package/dist/api/errors/index.d.ts +0 -7
- package/dist/api/errors/index.js +0 -23
- package/dist/api/index.d.ts +0 -3
- package/dist/api/index.js +0 -19
- package/dist/api/resources/bulkSync/client/Client.d.ts +0 -397
- package/dist/api/resources/bulkSync/client/Client.js +0 -1068
- package/dist/api/resources/bulkSync/client/index.d.ts +0 -1
- package/dist/api/resources/bulkSync/client/index.js +0 -17
- package/dist/api/resources/bulkSync/client/requests/BulkSyncGetRequest.d.ts +0 -12
- package/dist/api/resources/bulkSync/client/requests/BulkSyncGetRequest.js +0 -5
- package/dist/api/resources/bulkSync/client/requests/BulkSyncGetSourceRequest.d.ts +0 -15
- package/dist/api/resources/bulkSync/client/requests/BulkSyncGetSourceRequest.js +0 -5
- package/dist/api/resources/bulkSync/client/requests/BulkSyncListRequest.d.ts +0 -15
- package/dist/api/resources/bulkSync/client/requests/BulkSyncListRequest.js +0 -5
- package/dist/api/resources/bulkSync/client/requests/BulkSyncRemoveRequest.d.ts +0 -12
- package/dist/api/resources/bulkSync/client/requests/BulkSyncRemoveRequest.js +0 -5
- package/dist/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +0 -43
- package/dist/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.js +0 -5
- package/dist/api/resources/bulkSync/client/requests/StartBulkSyncRequest.d.ts +0 -18
- package/dist/api/resources/bulkSync/client/requests/StartBulkSyncRequest.js +0 -5
- package/dist/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +0 -43
- package/dist/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.js +0 -5
- package/dist/api/resources/bulkSync/client/requests/index.d.ts +0 -7
- package/dist/api/resources/bulkSync/index.d.ts +0 -3
- package/dist/api/resources/bulkSync/index.js +0 -19
- package/dist/api/resources/bulkSync/resources/executions/client/Client.d.ts +0 -182
- package/dist/api/resources/bulkSync/resources/executions/client/Client.js +0 -569
- package/dist/api/resources/bulkSync/resources/executions/client/index.d.ts +0 -1
- package/dist/api/resources/bulkSync/resources/executions/client/index.js +0 -17
- package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsExportLogsRequest.d.ts +0 -13
- package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsExportLogsRequest.js +0 -5
- package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListRequest.d.ts +0 -30
- package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListRequest.js +0 -5
- package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListStatusRequest.d.ts +0 -24
- package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListStatusRequest.js +0 -5
- package/dist/api/resources/bulkSync/resources/executions/client/requests/index.d.ts +0 -3
- package/dist/api/resources/bulkSync/resources/index.d.ts +0 -6
- package/dist/api/resources/bulkSync/resources/index.js +0 -35
- package/dist/api/resources/bulkSync/resources/schedules/client/Client.d.ts +0 -142
- package/dist/api/resources/bulkSync/resources/schedules/client/Client.js +0 -457
- package/dist/api/resources/bulkSync/resources/schedules/client/index.d.ts +0 -1
- package/dist/api/resources/bulkSync/resources/schedules/client/index.js +0 -17
- package/dist/api/resources/bulkSync/resources/schedules/client/requests/CreateScheduleRequest.d.ts +0 -15
- package/dist/api/resources/bulkSync/resources/schedules/client/requests/CreateScheduleRequest.js +0 -5
- package/dist/api/resources/bulkSync/resources/schedules/client/requests/UpdateScheduleRequest.d.ts +0 -15
- package/dist/api/resources/bulkSync/resources/schedules/client/requests/UpdateScheduleRequest.js +0 -5
- package/dist/api/resources/bulkSync/resources/schedules/client/requests/index.d.ts +0 -2
- package/dist/api/resources/bulkSync/resources/schedules/index.d.ts +0 -1
- package/dist/api/resources/bulkSync/resources/schedules/index.js +0 -17
- package/dist/api/resources/bulkSync/resources/schemas/client/Client.d.ts +0 -161
- package/dist/api/resources/bulkSync/resources/schemas/client/Client.js +0 -472
- package/dist/api/resources/bulkSync/resources/schemas/client/index.d.ts +0 -1
- package/dist/api/resources/bulkSync/resources/schemas/client/index.js +0 -17
- package/dist/api/resources/bulkSync/resources/schemas/client/requests/BulkSyncSchemasRequest.d.ts +0 -12
- package/dist/api/resources/bulkSync/resources/schemas/client/requests/BulkSyncSchemasRequest.js +0 -5
- package/dist/api/resources/bulkSync/resources/schemas/client/requests/SchemasListRequest.d.ts +0 -13
- package/dist/api/resources/bulkSync/resources/schemas/client/requests/SchemasListRequest.js +0 -5
- package/dist/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +0 -25
- package/dist/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.js +0 -5
- package/dist/api/resources/bulkSync/resources/schemas/client/requests/index.d.ts +0 -3
- package/dist/api/resources/bulkSync/resources/schemas/index.d.ts +0 -1
- package/dist/api/resources/bulkSync/resources/schemas/index.js +0 -17
- package/dist/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItem.d.ts +0 -5
- package/dist/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItem.js +0 -5
- package/dist/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItem.d.ts +0 -5
- package/dist/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItem.js +0 -5
- package/dist/api/resources/bulkSync/types/index.d.ts +0 -2
- package/dist/api/resources/bulkSync/types/index.js +0 -18
- package/dist/api/resources/connections/client/Client.d.ts +0 -353
- package/dist/api/resources/connections/client/Client.js +0 -1120
- package/dist/api/resources/connections/client/index.d.ts +0 -1
- package/dist/api/resources/connections/client/index.js +0 -17
- package/dist/api/resources/connections/client/requests/ApiRequest.d.ts +0 -13
- package/dist/api/resources/connections/client/requests/ApiRequest.js +0 -5
- package/dist/api/resources/connections/client/requests/ConnectCardRequest.d.ts +0 -25
- package/dist/api/resources/connections/client/requests/ConnectCardRequest.js +0 -5
- package/dist/api/resources/connections/client/requests/ConnectionsRemoveRequest.d.ts +0 -12
- package/dist/api/resources/connections/client/requests/ConnectionsRemoveRequest.js +0 -5
- package/dist/api/resources/connections/client/requests/CreateConnectionRequestSchema.d.ts +0 -30
- package/dist/api/resources/connections/client/requests/CreateConnectionRequestSchema.js +0 -5
- package/dist/api/resources/connections/client/requests/GetConnectionTypeParameterValuesRequestSchema.d.ts +0 -15
- package/dist/api/resources/connections/client/requests/GetConnectionTypeParameterValuesRequestSchema.js +0 -5
- package/dist/api/resources/connections/client/requests/TestConnectionRequest.d.ts +0 -24
- package/dist/api/resources/connections/client/requests/TestConnectionRequest.js +0 -5
- package/dist/api/resources/connections/client/requests/UpdateConnectionRequestSchema.d.ts +0 -28
- package/dist/api/resources/connections/client/requests/UpdateConnectionRequestSchema.js +0 -5
- package/dist/api/resources/connections/client/requests/index.d.ts +0 -7
- package/dist/api/resources/connections/client/requests/index.js +0 -2
- package/dist/api/resources/connections/index.d.ts +0 -1
- package/dist/api/resources/connections/index.js +0 -17
- package/dist/api/resources/events/client/Client.d.ts +0 -71
- package/dist/api/resources/events/client/Client.js +0 -222
- package/dist/api/resources/events/client/index.d.ts +0 -1
- package/dist/api/resources/events/client/index.js +0 -17
- package/dist/api/resources/events/client/requests/EventsListRequest.d.ts +0 -33
- package/dist/api/resources/events/client/requests/EventsListRequest.js +0 -5
- package/dist/api/resources/events/client/requests/index.d.ts +0 -1
- package/dist/api/resources/events/client/requests/index.js +0 -2
- package/dist/api/resources/events/index.d.ts +0 -1
- package/dist/api/resources/events/index.js +0 -17
- package/dist/api/resources/identity/client/Client.d.ts +0 -50
- package/dist/api/resources/identity/client/Client.js +0 -131
- package/dist/api/resources/identity/client/index.js +0 -2
- package/dist/api/resources/identity/index.d.ts +0 -1
- package/dist/api/resources/identity/index.js +0 -17
- package/dist/api/resources/index.d.ts +0 -26
- package/dist/api/resources/index.js +0 -55
- package/dist/api/resources/jobs/client/Client.d.ts +0 -54
- package/dist/api/resources/jobs/client/Client.js +0 -139
- package/dist/api/resources/jobs/client/index.d.ts +0 -1
- package/dist/api/resources/jobs/client/index.js +0 -2
- package/dist/api/resources/jobs/index.d.ts +0 -1
- package/dist/api/resources/jobs/index.js +0 -17
- package/dist/api/resources/modelSync/client/Client.d.ts +0 -380
- package/dist/api/resources/modelSync/client/Client.js +0 -1121
- package/dist/api/resources/modelSync/client/index.d.ts +0 -1
- package/dist/api/resources/modelSync/client/index.js +0 -17
- package/dist/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +0 -48
- package/dist/api/resources/modelSync/client/requests/CreateModelSyncRequest.js +0 -5
- package/dist/api/resources/modelSync/client/requests/ModelSyncGetSourceFieldsRequest.d.ts +0 -13
- package/dist/api/resources/modelSync/client/requests/ModelSyncGetSourceFieldsRequest.js +0 -5
- package/dist/api/resources/modelSync/client/requests/ModelSyncGetSourceRequest.d.ts +0 -13
- package/dist/api/resources/modelSync/client/requests/ModelSyncGetSourceRequest.js +0 -5
- package/dist/api/resources/modelSync/client/requests/ModelSyncListRequest.d.ts +0 -16
- package/dist/api/resources/modelSync/client/requests/ModelSyncListRequest.js +0 -5
- package/dist/api/resources/modelSync/client/requests/StartModelSyncRequest.d.ts +0 -12
- package/dist/api/resources/modelSync/client/requests/StartModelSyncRequest.js +0 -5
- package/dist/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +0 -48
- package/dist/api/resources/modelSync/client/requests/UpdateModelSyncRequest.js +0 -5
- package/dist/api/resources/modelSync/client/requests/index.d.ts +0 -6
- package/dist/api/resources/modelSync/client/requests/index.js +0 -2
- package/dist/api/resources/modelSync/index.d.ts +0 -2
- package/dist/api/resources/modelSync/index.js +0 -18
- package/dist/api/resources/modelSync/resources/executions/client/Client.d.ts +0 -140
- package/dist/api/resources/modelSync/resources/executions/client/Client.js +0 -458
- package/dist/api/resources/modelSync/resources/executions/client/index.d.ts +0 -1
- package/dist/api/resources/modelSync/resources/executions/client/index.js +0 -17
- package/dist/api/resources/modelSync/resources/executions/client/requests/ExecutionsListRequest.d.ts +0 -16
- package/dist/api/resources/modelSync/resources/executions/client/requests/ExecutionsListRequest.js +0 -5
- package/dist/api/resources/modelSync/resources/executions/client/requests/UpdateExecutionRequest.d.ts +0 -13
- package/dist/api/resources/modelSync/resources/executions/client/requests/UpdateExecutionRequest.js +0 -5
- package/dist/api/resources/modelSync/resources/executions/client/requests/index.d.ts +0 -2
- package/dist/api/resources/modelSync/resources/executions/client/requests/index.js +0 -2
- package/dist/api/resources/modelSync/resources/executions/index.d.ts +0 -1
- package/dist/api/resources/modelSync/resources/executions/index.js +0 -17
- package/dist/api/resources/modelSync/resources/index.d.ts +0 -4
- package/dist/api/resources/modelSync/resources/index.js +0 -33
- package/dist/api/resources/modelSync/resources/targets/client/Client.d.ts +0 -160
- package/dist/api/resources/modelSync/resources/targets/client/Client.js +0 -435
- package/dist/api/resources/modelSync/resources/targets/client/index.d.ts +0 -1
- package/dist/api/resources/modelSync/resources/targets/client/index.js +0 -17
- package/dist/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetFieldsRequest.d.ts +0 -20
- package/dist/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetFieldsRequest.js +0 -5
- package/dist/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetRequest.d.ts +0 -17
- package/dist/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetRequest.js +0 -5
- package/dist/api/resources/modelSync/resources/targets/client/requests/index.d.ts +0 -2
- package/dist/api/resources/modelSync/resources/targets/client/requests/index.js +0 -2
- package/dist/api/resources/modelSync/resources/targets/index.d.ts +0 -1
- package/dist/api/resources/modelSync/resources/targets/index.js +0 -17
- package/dist/api/resources/models/client/Client.d.ts +0 -251
- package/dist/api/resources/models/client/Client.js +0 -837
- package/dist/api/resources/models/client/index.d.ts +0 -1
- package/dist/api/resources/models/client/index.js +0 -17
- package/dist/api/resources/models/client/requests/GetEnrichmentInputFieldsRequest.d.ts +0 -11
- package/dist/api/resources/models/client/requests/GetEnrichmentInputFieldsRequest.js +0 -5
- package/dist/api/resources/models/client/requests/ModelsCreateRequest.d.ts +0 -20
- package/dist/api/resources/models/client/requests/ModelsCreateRequest.js +0 -5
- package/dist/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.d.ts +0 -13
- package/dist/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.js +0 -5
- package/dist/api/resources/models/client/requests/ModelsGetRequest.d.ts +0 -10
- package/dist/api/resources/models/client/requests/ModelsGetRequest.js +0 -5
- package/dist/api/resources/models/client/requests/ModelsPreviewRequest.d.ts +0 -20
- package/dist/api/resources/models/client/requests/ModelsPreviewRequest.js +0 -5
- package/dist/api/resources/models/client/requests/ModelsRemoveRequest.d.ts +0 -10
- package/dist/api/resources/models/client/requests/ModelsRemoveRequest.js +0 -5
- package/dist/api/resources/models/client/requests/ModelsSampleRequest.d.ts +0 -10
- package/dist/api/resources/models/client/requests/ModelsSampleRequest.js +0 -5
- package/dist/api/resources/models/client/requests/UpdateModelRequest.d.ts +0 -31
- package/dist/api/resources/models/client/requests/UpdateModelRequest.js +0 -5
- package/dist/api/resources/models/client/requests/index.d.ts +0 -8
- package/dist/api/resources/models/client/requests/index.js +0 -2
- package/dist/api/resources/models/index.d.ts +0 -1
- package/dist/api/resources/models/index.js +0 -17
- package/dist/api/resources/notifications/client/Client.d.ts +0 -63
- package/dist/api/resources/notifications/client/Client.js +0 -199
- package/dist/api/resources/notifications/client/index.d.ts +0 -1
- package/dist/api/resources/notifications/client/index.js +0 -17
- package/dist/api/resources/notifications/client/requests/V4GlobalErrorSubscribersRequest.d.ts +0 -11
- package/dist/api/resources/notifications/client/requests/V4GlobalErrorSubscribersRequest.js +0 -5
- package/dist/api/resources/notifications/client/requests/index.d.ts +0 -1
- package/dist/api/resources/notifications/client/requests/index.js +0 -2
- package/dist/api/resources/notifications/index.d.ts +0 -1
- package/dist/api/resources/notifications/index.js +0 -17
- package/dist/api/resources/organization/client/Client.d.ts +0 -135
- package/dist/api/resources/organization/client/Client.js +0 -442
- package/dist/api/resources/organization/client/index.d.ts +0 -1
- package/dist/api/resources/organization/client/index.js +0 -17
- package/dist/api/resources/organization/client/requests/CreateOrganizationRequestSchema.d.ts +0 -23
- package/dist/api/resources/organization/client/requests/CreateOrganizationRequestSchema.js +0 -5
- package/dist/api/resources/organization/client/requests/UpdateOrganizationRequestSchema.d.ts +0 -23
- package/dist/api/resources/organization/client/requests/UpdateOrganizationRequestSchema.js +0 -5
- package/dist/api/resources/organization/client/requests/index.d.ts +0 -2
- package/dist/api/resources/organization/client/requests/index.js +0 -2
- package/dist/api/resources/organization/index.d.ts +0 -1
- package/dist/api/resources/organization/index.js +0 -17
- package/dist/api/resources/permissions/client/Client.d.ts +0 -32
- package/dist/api/resources/permissions/client/Client.js +0 -22
- package/dist/api/resources/permissions/client/index.d.ts +0 -1
- package/dist/api/resources/permissions/client/index.js +0 -2
- package/dist/api/resources/permissions/index.d.ts +0 -2
- package/dist/api/resources/permissions/index.js +0 -18
- package/dist/api/resources/permissions/resources/index.d.ts +0 -4
- package/dist/api/resources/permissions/resources/index.js +0 -33
- package/dist/api/resources/permissions/resources/policies/client/Client.d.ts +0 -129
- package/dist/api/resources/permissions/resources/policies/client/Client.js +0 -438
- package/dist/api/resources/permissions/resources/policies/client/index.d.ts +0 -1
- package/dist/api/resources/permissions/resources/policies/client/index.js +0 -17
- package/dist/api/resources/permissions/resources/policies/client/requests/CreatePolicyRequest.d.ts +0 -15
- package/dist/api/resources/permissions/resources/policies/client/requests/CreatePolicyRequest.js +0 -5
- package/dist/api/resources/permissions/resources/policies/client/requests/UpdatePolicyRequest.d.ts +0 -15
- package/dist/api/resources/permissions/resources/policies/client/requests/UpdatePolicyRequest.js +0 -5
- package/dist/api/resources/permissions/resources/policies/client/requests/index.d.ts +0 -2
- package/dist/api/resources/permissions/resources/policies/client/requests/index.js +0 -2
- package/dist/api/resources/permissions/resources/policies/index.d.ts +0 -1
- package/dist/api/resources/permissions/resources/policies/index.js +0 -17
- package/dist/api/resources/permissions/resources/roles/client/Client.d.ts +0 -133
- package/dist/api/resources/permissions/resources/roles/client/Client.js +0 -440
- package/dist/api/resources/permissions/resources/roles/client/index.d.ts +0 -1
- package/dist/api/resources/permissions/resources/roles/client/index.js +0 -17
- package/dist/api/resources/permissions/resources/roles/client/requests/CreateRoleRequest.d.ts +0 -13
- package/dist/api/resources/permissions/resources/roles/client/requests/CreateRoleRequest.js +0 -5
- package/dist/api/resources/permissions/resources/roles/client/requests/UpdateRoleRequest.d.ts +0 -13
- package/dist/api/resources/permissions/resources/roles/client/requests/UpdateRoleRequest.js +0 -5
- package/dist/api/resources/permissions/resources/roles/client/requests/index.d.ts +0 -2
- package/dist/api/resources/permissions/resources/roles/client/requests/index.js +0 -2
- package/dist/api/resources/permissions/resources/roles/index.d.ts +0 -1
- package/dist/api/resources/permissions/resources/roles/index.js +0 -17
- package/dist/api/resources/queryRunner/client/Client.d.ts +0 -82
- package/dist/api/resources/queryRunner/client/Client.js +0 -247
- package/dist/api/resources/queryRunner/client/index.d.ts +0 -1
- package/dist/api/resources/queryRunner/client/index.js +0 -17
- package/dist/api/resources/queryRunner/client/requests/QueryRunnerGetQueryRequest.d.ts +0 -13
- package/dist/api/resources/queryRunner/client/requests/QueryRunnerGetQueryRequest.js +0 -5
- package/dist/api/resources/queryRunner/client/requests/V4RunQueryRequest.d.ts +0 -15
- package/dist/api/resources/queryRunner/client/requests/V4RunQueryRequest.js +0 -5
- package/dist/api/resources/queryRunner/client/requests/index.d.ts +0 -2
- package/dist/api/resources/queryRunner/client/requests/index.js +0 -2
- package/dist/api/resources/queryRunner/index.d.ts +0 -1
- package/dist/api/resources/queryRunner/index.js +0 -17
- package/dist/api/resources/schemas/client/Client.d.ts +0 -246
- package/dist/api/resources/schemas/client/Client.js +0 -727
- package/dist/api/resources/schemas/client/index.d.ts +0 -1
- package/dist/api/resources/schemas/client/index.js +0 -17
- package/dist/api/resources/schemas/client/requests/SetPrimaryKeysRequest.d.ts +0 -12
- package/dist/api/resources/schemas/client/requests/SetPrimaryKeysRequest.js +0 -5
- package/dist/api/resources/schemas/client/requests/UpsertSchemaFieldRequest.d.ts +0 -12
- package/dist/api/resources/schemas/client/requests/UpsertSchemaFieldRequest.js +0 -5
- package/dist/api/resources/schemas/client/requests/index.d.ts +0 -2
- package/dist/api/resources/schemas/client/requests/index.js +0 -2
- package/dist/api/resources/schemas/index.d.ts +0 -1
- package/dist/api/resources/schemas/index.js +0 -17
- package/dist/api/resources/users/client/Client.d.ts +0 -154
- package/dist/api/resources/users/client/Client.js +0 -525
- package/dist/api/resources/users/client/index.d.ts +0 -1
- package/dist/api/resources/users/client/index.js +0 -17
- package/dist/api/resources/users/client/requests/CreateUserRequestSchema.d.ts +0 -17
- package/dist/api/resources/users/client/requests/CreateUserRequestSchema.js +0 -5
- package/dist/api/resources/users/client/requests/UpdateUserRequestSchema.d.ts +0 -17
- package/dist/api/resources/users/client/requests/UpdateUserRequestSchema.js +0 -5
- package/dist/api/resources/users/client/requests/UsersCreateApiKeyRequest.d.ts +0 -15
- package/dist/api/resources/users/client/requests/UsersCreateApiKeyRequest.js +0 -5
- package/dist/api/resources/users/client/requests/index.d.ts +0 -3
- package/dist/api/resources/users/client/requests/index.js +0 -2
- package/dist/api/resources/users/index.d.ts +0 -1
- package/dist/api/resources/users/index.js +0 -17
- package/dist/api/resources/webhooks/client/Client.d.ts +0 -191
- package/dist/api/resources/webhooks/client/Client.js +0 -596
- package/dist/api/resources/webhooks/client/index.d.ts +0 -1
- package/dist/api/resources/webhooks/client/index.js +0 -17
- package/dist/api/resources/webhooks/client/requests/CreateWebhooksSchema.d.ts +0 -15
- package/dist/api/resources/webhooks/client/requests/CreateWebhooksSchema.js +0 -5
- package/dist/api/resources/webhooks/client/requests/UpdateWebhooksSchema.d.ts +0 -15
- package/dist/api/resources/webhooks/client/requests/UpdateWebhooksSchema.js +0 -5
- package/dist/api/resources/webhooks/client/requests/index.d.ts +0 -2
- package/dist/api/resources/webhooks/client/requests/index.js +0 -2
- package/dist/api/resources/webhooks/index.d.ts +0 -1
- package/dist/api/resources/webhooks/index.js +0 -17
- package/dist/api/types/ActivateSyncEnvelope.d.ts +0 -7
- package/dist/api/types/ActivateSyncEnvelope.js +0 -5
- package/dist/api/types/ActivateSyncInput.d.ts +0 -6
- package/dist/api/types/ActivateSyncInput.js +0 -5
- package/dist/api/types/ActivateSyncOutput.d.ts +0 -7
- package/dist/api/types/ActivateSyncOutput.js +0 -5
- package/dist/api/types/ApiError.d.ts +0 -9
- package/dist/api/types/ApiError.js +0 -5
- package/dist/api/types/ApiKeyResponse.d.ts +0 -7
- package/dist/api/types/ApiKeyResponse.js +0 -5
- package/dist/api/types/ApiKeyResponseEnvelope.d.ts +0 -7
- package/dist/api/types/ApiKeyResponseEnvelope.js +0 -5
- package/dist/api/types/BackendConnectionCapabilities.d.ts +0 -9
- package/dist/api/types/BackendConnectionCapabilities.js +0 -5
- package/dist/api/types/BackendOAuthPrompt.d.ts +0 -8
- package/dist/api/types/BackendOAuthPrompt.js +0 -5
- package/dist/api/types/BulkBulkSyncSchedule.d.ts +0 -23
- package/dist/api/types/BulkBulkSyncSchedule.js +0 -5
- package/dist/api/types/BulkDiscover.d.ts +0 -10
- package/dist/api/types/BulkDiscover.js +0 -12
- package/dist/api/types/BulkExecutionStatus.d.ts +0 -17
- package/dist/api/types/BulkExecutionStatus.js +0 -19
- package/dist/api/types/BulkFetchMode.d.ts +0 -12
- package/dist/api/types/BulkFetchMode.js +0 -11
- package/dist/api/types/BulkField.d.ts +0 -10
- package/dist/api/types/BulkField.js +0 -5
- package/dist/api/types/BulkFilter.d.ts +0 -10
- package/dist/api/types/BulkFilter.js +0 -5
- package/dist/api/types/BulkItemizedSchedule.d.ts +0 -8
- package/dist/api/types/BulkItemizedSchedule.js +0 -5
- package/dist/api/types/BulkMultiScheduleConfiguration.d.ts +0 -8
- package/dist/api/types/BulkMultiScheduleConfiguration.js +0 -5
- package/dist/api/types/BulkNormalizeNames.d.ts +0 -9
- package/dist/api/types/BulkNormalizeNames.js +0 -11
- package/dist/api/types/BulkOutputDisposition.d.ts +0 -9
- package/dist/api/types/BulkOutputDisposition.js +0 -11
- package/dist/api/types/BulkResyncMode.d.ts +0 -9
- package/dist/api/types/BulkResyncMode.js +0 -11
- package/dist/api/types/BulkSchedule.d.ts +0 -13
- package/dist/api/types/BulkSchedule.js +0 -5
- package/dist/api/types/BulkScheduleSyncMode.d.ts +0 -10
- package/dist/api/types/BulkScheduleSyncMode.js +0 -12
- package/dist/api/types/BulkSchema.d.ts +0 -18
- package/dist/api/types/BulkSchema.js +0 -5
- package/dist/api/types/BulkSchemaEnvelope.d.ts +0 -7
- package/dist/api/types/BulkSchemaEnvelope.js +0 -5
- package/dist/api/types/BulkSchemaExecutionStatus.d.ts +0 -15
- package/dist/api/types/BulkSchemaExecutionStatus.js +0 -17
- package/dist/api/types/BulkSelectiveMode.d.ts +0 -9
- package/dist/api/types/BulkSelectiveMode.js +0 -11
- package/dist/api/types/BulkSyncCanceledEvent.d.ts +0 -11
- package/dist/api/types/BulkSyncCanceledEvent.js +0 -5
- package/dist/api/types/BulkSyncCompletedEvent.d.ts +0 -12
- package/dist/api/types/BulkSyncCompletedEvent.js +0 -5
- package/dist/api/types/BulkSyncCompletedWithErrorEvent.d.ts +0 -12
- package/dist/api/types/BulkSyncCompletedWithErrorEvent.js +0 -5
- package/dist/api/types/BulkSyncDest.d.ts +0 -10
- package/dist/api/types/BulkSyncDest.js +0 -5
- package/dist/api/types/BulkSyncDestEnvelope.d.ts +0 -7
- package/dist/api/types/BulkSyncDestEnvelope.js +0 -5
- package/dist/api/types/BulkSyncExecution.d.ts +0 -23
- package/dist/api/types/BulkSyncExecution.js +0 -5
- package/dist/api/types/BulkSyncExecutionEnvelope.d.ts +0 -7
- package/dist/api/types/BulkSyncExecutionEnvelope.js +0 -5
- package/dist/api/types/BulkSyncExecutionStatus.d.ts +0 -13
- package/dist/api/types/BulkSyncExecutionStatus.js +0 -5
- package/dist/api/types/BulkSyncFailedEvent.d.ts +0 -13
- package/dist/api/types/BulkSyncFailedEvent.js +0 -5
- package/dist/api/types/BulkSyncIngestionStatus.d.ts +0 -14
- package/dist/api/types/BulkSyncIngestionStatus.js +0 -5
- package/dist/api/types/BulkSyncListEnvelope.d.ts +0 -7
- package/dist/api/types/BulkSyncListEnvelope.js +0 -5
- package/dist/api/types/BulkSyncMode.d.ts +0 -11
- package/dist/api/types/BulkSyncMode.js +0 -10
- package/dist/api/types/BulkSyncResponse.d.ts +0 -36
- package/dist/api/types/BulkSyncResponse.js +0 -5
- package/dist/api/types/BulkSyncResponseEnvelope.d.ts +0 -7
- package/dist/api/types/BulkSyncResponseEnvelope.js +0 -5
- package/dist/api/types/BulkSyncRunningEvent.d.ts +0 -11
- package/dist/api/types/BulkSyncRunningEvent.js +0 -5
- package/dist/api/types/BulkSyncSchemaExecution.d.ts +0 -17
- package/dist/api/types/BulkSyncSchemaExecution.js +0 -5
- package/dist/api/types/BulkSyncSchemaExecutionStatus.d.ts +0 -23
- package/dist/api/types/BulkSyncSchemaExecutionStatus.js +0 -5
- package/dist/api/types/BulkSyncSource.d.ts +0 -9
- package/dist/api/types/BulkSyncSource.js +0 -5
- package/dist/api/types/BulkSyncSourceEnvelope.d.ts +0 -7
- package/dist/api/types/BulkSyncSourceEnvelope.js +0 -5
- package/dist/api/types/BulkSyncSourceSchemaEnvelope.d.ts +0 -7
- package/dist/api/types/BulkSyncSourceSchemaEnvelope.js +0 -5
- package/dist/api/types/BulkSyncSourceStatus.d.ts +0 -8
- package/dist/api/types/BulkSyncSourceStatus.js +0 -5
- package/dist/api/types/BulkSyncSourceStatusEnvelope.d.ts +0 -7
- package/dist/api/types/BulkSyncSourceStatusEnvelope.js +0 -5
- package/dist/api/types/BulkSyncStatusEnvelope.d.ts +0 -7
- package/dist/api/types/BulkSyncStatusEnvelope.js +0 -5
- package/dist/api/types/BulkSyncStatusResponse.d.ts +0 -10
- package/dist/api/types/BulkSyncStatusResponse.js +0 -5
- package/dist/api/types/CancelBulkSyncResponse.d.ts +0 -6
- package/dist/api/types/CancelBulkSyncResponse.js +0 -5
- package/dist/api/types/CancelBulkSyncResponseEnvelope.d.ts +0 -7
- package/dist/api/types/CancelBulkSyncResponseEnvelope.js +0 -5
- package/dist/api/types/CancelModelSyncResponse.d.ts +0 -6
- package/dist/api/types/CancelModelSyncResponse.js +0 -5
- package/dist/api/types/CancelModelSyncResponseEnvelope.d.ts +0 -7
- package/dist/api/types/CancelModelSyncResponseEnvelope.js +0 -5
- package/dist/api/types/ConfigurationValue.d.ts +0 -7
- package/dist/api/types/ConfigurationValue.js +0 -5
- package/dist/api/types/ConnectCardResponse.d.ts +0 -9
- package/dist/api/types/ConnectCardResponse.js +0 -5
- package/dist/api/types/ConnectCardResponseEnvelope.d.ts +0 -7
- package/dist/api/types/ConnectCardResponseEnvelope.js +0 -5
- package/dist/api/types/ConnectionListResponseEnvelope.d.ts +0 -7
- package/dist/api/types/ConnectionListResponseEnvelope.js +0 -5
- package/dist/api/types/ConnectionMeta.d.ts +0 -8
- package/dist/api/types/ConnectionMeta.js +0 -5
- package/dist/api/types/ConnectionMetaResponse.d.ts +0 -9
- package/dist/api/types/ConnectionMetaResponse.js +0 -5
- package/dist/api/types/ConnectionParameterValue.d.ts +0 -7
- package/dist/api/types/ConnectionParameterValue.js +0 -5
- package/dist/api/types/ConnectionParameterValuesResp.d.ts +0 -8
- package/dist/api/types/ConnectionParameterValuesResp.js +0 -5
- package/dist/api/types/ConnectionParameterValuesResponseEnvelope.d.ts +0 -7
- package/dist/api/types/ConnectionParameterValuesResponseEnvelope.js +0 -5
- package/dist/api/types/ConnectionResponseEnvelope.d.ts +0 -7
- package/dist/api/types/ConnectionResponseEnvelope.js +0 -5
- package/dist/api/types/ConnectionResponseSchema.d.ts +0 -23
- package/dist/api/types/ConnectionResponseSchema.js +0 -5
- package/dist/api/types/ConnectionType.d.ts +0 -15
- package/dist/api/types/ConnectionType.js +0 -5
- package/dist/api/types/ConnectionTypeResponseEnvelope.d.ts +0 -7
- package/dist/api/types/ConnectionTypeResponseEnvelope.js +0 -5
- package/dist/api/types/ConnectionTypeSchema.d.ts +0 -9
- package/dist/api/types/ConnectionTypeSchema.js +0 -5
- package/dist/api/types/CreateConnectionResponseEnvelope.d.ts +0 -7
- package/dist/api/types/CreateConnectionResponseEnvelope.js +0 -5
- package/dist/api/types/CreateConnectionResponseSchema.d.ts +0 -21
- package/dist/api/types/CreateConnectionResponseSchema.js +0 -5
- package/dist/api/types/CreateModelRequest.d.ts +0 -18
- package/dist/api/types/CreateModelRequest.js +0 -5
- package/dist/api/types/CreateSharedConnectionResponseSchema.d.ts +0 -6
- package/dist/api/types/CreateSharedConnectionResponseSchema.js +0 -5
- package/dist/api/types/Enrichment.d.ts +0 -13
- package/dist/api/types/Enrichment.js +0 -5
- package/dist/api/types/Event.d.ts +0 -15
- package/dist/api/types/Event.js +0 -5
- package/dist/api/types/EventBody.d.ts +0 -5
- package/dist/api/types/EventBody.js +0 -5
- package/dist/api/types/EventTypesEnvelope.d.ts +0 -6
- package/dist/api/types/EventTypesEnvelope.js +0 -5
- package/dist/api/types/EventsEnvelope.d.ts +0 -7
- package/dist/api/types/EventsEnvelope.js +0 -5
- package/dist/api/types/ExecutionCounts.d.ts +0 -12
- package/dist/api/types/ExecutionCounts.js +0 -5
- package/dist/api/types/ExecutionLogResponse.d.ts +0 -7
- package/dist/api/types/ExecutionLogResponse.js +0 -5
- package/dist/api/types/ExecutionLogsResponseEnvelope.d.ts +0 -7
- package/dist/api/types/ExecutionLogsResponseEnvelope.js +0 -5
- package/dist/api/types/ExecutionStatus.d.ts +0 -17
- package/dist/api/types/ExecutionStatus.js +0 -19
- package/dist/api/types/FieldConfiguration.d.ts +0 -10
- package/dist/api/types/FieldConfiguration.js +0 -5
- package/dist/api/types/Filter.d.ts +0 -16
- package/dist/api/types/Filter.js +0 -5
- package/dist/api/types/FilterFieldReferenceType.d.ts +0 -8
- package/dist/api/types/FilterFieldReferenceType.js +0 -10
- package/dist/api/types/FilterFunction.d.ts +0 -35
- package/dist/api/types/FilterFunction.js +0 -37
- package/dist/api/types/GetConnectionMetaEnvelope.d.ts +0 -7
- package/dist/api/types/GetConnectionMetaEnvelope.js +0 -5
- package/dist/api/types/GetExecutionResponseEnvelope.d.ts +0 -7
- package/dist/api/types/GetExecutionResponseEnvelope.js +0 -5
- package/dist/api/types/GetExecutionResponseSchema.d.ts +0 -14
- package/dist/api/types/GetExecutionResponseSchema.js +0 -5
- package/dist/api/types/GetIdentityResponseEnvelope.d.ts +0 -7
- package/dist/api/types/GetIdentityResponseEnvelope.js +0 -5
- package/dist/api/types/GetIdentityResponseSchema.d.ts +0 -23
- package/dist/api/types/GetIdentityResponseSchema.js +0 -5
- package/dist/api/types/GetModelSyncSourceMetaEnvelope.d.ts +0 -7
- package/dist/api/types/GetModelSyncSourceMetaEnvelope.js +0 -5
- package/dist/api/types/Identity.d.ts +0 -11
- package/dist/api/types/Identity.js +0 -5
- package/dist/api/types/IdentityFunction.d.ts +0 -7
- package/dist/api/types/IdentityFunction.js +0 -5
- package/dist/api/types/IngestionStatusLevel.d.ts +0 -12
- package/dist/api/types/IngestionStatusLevel.js +0 -11
- package/dist/api/types/JobResponse.d.ts +0 -14
- package/dist/api/types/JobResponse.js +0 -5
- package/dist/api/types/JobResponseEnvelope.d.ts +0 -7
- package/dist/api/types/JobResponseEnvelope.js +0 -5
- package/dist/api/types/JsonschemaDefinitions.d.ts +0 -5
- package/dist/api/types/JsonschemaDefinitions.js +0 -5
- package/dist/api/types/JsonschemaForm.d.ts +0 -4
- package/dist/api/types/JsonschemaForm.js +0 -5
- package/dist/api/types/JsonschemaSchema.d.ts +0 -59
- package/dist/api/types/JsonschemaSchema.js +0 -5
- package/dist/api/types/LabelLabel.d.ts +0 -4
- package/dist/api/types/LabelLabel.js +0 -5
- package/dist/api/types/ListBulkSchema.d.ts +0 -7
- package/dist/api/types/ListBulkSchema.js +0 -5
- package/dist/api/types/ListBulkSyncExecutionStatusEnvelope.d.ts +0 -7
- package/dist/api/types/ListBulkSyncExecutionStatusEnvelope.js +0 -5
- package/dist/api/types/ListBulkSyncExecutionsEnvelope.d.ts +0 -8
- package/dist/api/types/ListBulkSyncExecutionsEnvelope.js +0 -5
- package/dist/api/types/ListExecutionResponseEnvelope.d.ts +0 -8
- package/dist/api/types/ListExecutionResponseEnvelope.js +0 -5
- package/dist/api/types/ListModelSyncResponseEnvelope.d.ts +0 -7
- package/dist/api/types/ListModelSyncResponseEnvelope.js +0 -5
- package/dist/api/types/ListPoliciesResponseEnvelope.d.ts +0 -7
- package/dist/api/types/ListPoliciesResponseEnvelope.js +0 -5
- package/dist/api/types/ListUsersEnvelope.d.ts +0 -7
- package/dist/api/types/ListUsersEnvelope.js +0 -5
- package/dist/api/types/Mode.d.ts +0 -11
- package/dist/api/types/Mode.js +0 -5
- package/dist/api/types/ModelField.d.ts +0 -18
- package/dist/api/types/ModelField.js +0 -5
- package/dist/api/types/ModelFieldResponse.d.ts +0 -7
- package/dist/api/types/ModelFieldResponse.js +0 -5
- package/dist/api/types/ModelListResponseEnvelope.d.ts +0 -7
- package/dist/api/types/ModelListResponseEnvelope.js +0 -5
- package/dist/api/types/ModelModelFieldRequest.d.ts +0 -9
- package/dist/api/types/ModelModelFieldRequest.js +0 -5
- package/dist/api/types/ModelRelation.d.ts +0 -8
- package/dist/api/types/ModelRelation.js +0 -5
- package/dist/api/types/ModelRelationTo.d.ts +0 -7
- package/dist/api/types/ModelRelationTo.js +0 -5
- package/dist/api/types/ModelResponse.d.ts +0 -24
- package/dist/api/types/ModelResponse.js +0 -5
- package/dist/api/types/ModelResponseEnvelope.d.ts +0 -8
- package/dist/api/types/ModelResponseEnvelope.js +0 -5
- package/dist/api/types/ModelSample.d.ts +0 -8
- package/dist/api/types/ModelSample.js +0 -5
- package/dist/api/types/ModelSampleResponseEnvelope.d.ts +0 -8
- package/dist/api/types/ModelSampleResponseEnvelope.js +0 -5
- package/dist/api/types/ModelSyncField.d.ts +0 -17
- package/dist/api/types/ModelSyncField.js +0 -5
- package/dist/api/types/ModelSyncMode.d.ts +0 -16
- package/dist/api/types/ModelSyncMode.js +0 -15
- package/dist/api/types/ModelSyncResponse.d.ts +0 -30
- package/dist/api/types/ModelSyncResponse.js +0 -5
- package/dist/api/types/ModelSyncResponseEnvelope.d.ts +0 -7
- package/dist/api/types/ModelSyncResponseEnvelope.js +0 -5
- package/dist/api/types/ModelSyncSourceMetaResponse.d.ts +0 -12
- package/dist/api/types/ModelSyncSourceMetaResponse.js +0 -5
- package/dist/api/types/Organization.d.ts +0 -15
- package/dist/api/types/Organization.js +0 -5
- package/dist/api/types/OrganizationEnvelope.d.ts +0 -7
- package/dist/api/types/OrganizationEnvelope.js +0 -5
- package/dist/api/types/OrganizationsEnvelope.d.ts +0 -7
- package/dist/api/types/OrganizationsEnvelope.js +0 -5
- package/dist/api/types/OutputActor.d.ts +0 -8
- package/dist/api/types/OutputActor.js +0 -5
- package/dist/api/types/Override.d.ts +0 -15
- package/dist/api/types/Override.js +0 -5
- package/dist/api/types/Pagination.d.ts +0 -9
- package/dist/api/types/Pagination.js +0 -5
- package/dist/api/types/PaginationDetails.d.ts +0 -6
- package/dist/api/types/PaginationDetails.js +0 -5
- package/dist/api/types/PickValue.d.ts +0 -7
- package/dist/api/types/PickValue.js +0 -5
- package/dist/api/types/PolicyAction.d.ts +0 -7
- package/dist/api/types/PolicyAction.js +0 -5
- package/dist/api/types/PolicyResponse.d.ts +0 -11
- package/dist/api/types/PolicyResponse.js +0 -5
- package/dist/api/types/PolicyResponseEnvelope.d.ts +0 -7
- package/dist/api/types/PolicyResponseEnvelope.js +0 -5
- package/dist/api/types/Relation.d.ts +0 -8
- package/dist/api/types/Relation.js +0 -5
- package/dist/api/types/RelationTo.d.ts +0 -7
- package/dist/api/types/RelationTo.js +0 -5
- package/dist/api/types/RestErrResponse.d.ts +0 -13
- package/dist/api/types/RestErrResponse.js +0 -5
- package/dist/api/types/RoleListResponseEnvelope.d.ts +0 -7
- package/dist/api/types/RoleListResponseEnvelope.js +0 -5
- package/dist/api/types/RoleResponse.d.ts +0 -9
- package/dist/api/types/RoleResponse.js +0 -5
- package/dist/api/types/RoleResponseEnvelope.d.ts +0 -7
- package/dist/api/types/RoleResponseEnvelope.js +0 -5
- package/dist/api/types/RunAfter.d.ts +0 -7
- package/dist/api/types/RunAfter.js +0 -5
- package/dist/api/types/Schedule.d.ts +0 -17
- package/dist/api/types/Schedule.js +0 -5
- package/dist/api/types/ScheduleEnvelope.d.ts +0 -7
- package/dist/api/types/ScheduleEnvelope.js +0 -5
- package/dist/api/types/ScheduleFrequency.d.ts +0 -16
- package/dist/api/types/ScheduleFrequency.js +0 -18
- package/dist/api/types/ScheduleOptionResponse.d.ts +0 -7
- package/dist/api/types/ScheduleOptionResponse.js +0 -5
- package/dist/api/types/ScheduleOptionResponseEnvelope.d.ts +0 -7
- package/dist/api/types/ScheduleOptionResponseEnvelope.js +0 -5
- package/dist/api/types/ScheduleScheduleOption.d.ts +0 -10
- package/dist/api/types/ScheduleScheduleOption.js +0 -5
- package/dist/api/types/SchedulesEnvelope.d.ts +0 -7
- package/dist/api/types/SchedulesEnvelope.js +0 -5
- package/dist/api/types/Schema.d.ts +0 -9
- package/dist/api/types/Schema.js +0 -5
- package/dist/api/types/SchemaAssociation.d.ts +0 -9
- package/dist/api/types/SchemaAssociation.js +0 -5
- package/dist/api/types/SchemaConfiguration.d.ts +0 -16
- package/dist/api/types/SchemaConfiguration.js +0 -5
- package/dist/api/types/SchemaField.d.ts +0 -16
- package/dist/api/types/SchemaField.js +0 -5
- package/dist/api/types/SchemaIdentityFunction.d.ts +0 -11
- package/dist/api/types/SchemaIdentityFunction.js +0 -13
- package/dist/api/types/SchemaPrimaryKeyOverrideInput.d.ts +0 -7
- package/dist/api/types/SchemaPrimaryKeyOverrideInput.js +0 -5
- package/dist/api/types/SchemaRecordsResponseEnvelope.d.ts +0 -6
- package/dist/api/types/SchemaRecordsResponseEnvelope.js +0 -5
- package/dist/api/types/Source.d.ts +0 -7
- package/dist/api/types/Source.js +0 -5
- package/dist/api/types/SourceMeta.d.ts +0 -11
- package/dist/api/types/SourceMeta.js +0 -5
- package/dist/api/types/StartModelSyncResponseEnvelope.d.ts +0 -7
- package/dist/api/types/StartModelSyncResponseEnvelope.js +0 -5
- package/dist/api/types/StartModelSyncResponseSchema.d.ts +0 -10
- package/dist/api/types/StartModelSyncResponseSchema.js +0 -5
- package/dist/api/types/SupportedBulkMode.d.ts +0 -12
- package/dist/api/types/SupportedBulkMode.js +0 -5
- package/dist/api/types/SupportedMode.d.ts +0 -13
- package/dist/api/types/SupportedMode.js +0 -5
- package/dist/api/types/SyncCanceledEvent.d.ts +0 -12
- package/dist/api/types/SyncCanceledEvent.js +0 -5
- package/dist/api/types/SyncCompletedEvent.d.ts +0 -25
- package/dist/api/types/SyncCompletedEvent.js +0 -5
- package/dist/api/types/SyncCompletedWithErrorsEvent.d.ts +0 -13
- package/dist/api/types/SyncCompletedWithErrorsEvent.js +0 -5
- package/dist/api/types/SyncDestinationProperties.d.ts +0 -18
- package/dist/api/types/SyncDestinationProperties.js +0 -5
- package/dist/api/types/SyncFailedEvent.d.ts +0 -11
- package/dist/api/types/SyncFailedEvent.js +0 -5
- package/dist/api/types/SyncRunningEvent.d.ts +0 -10
- package/dist/api/types/SyncRunningEvent.js +0 -5
- package/dist/api/types/SyncStatusEnvelope.d.ts +0 -7
- package/dist/api/types/SyncStatusEnvelope.js +0 -5
- package/dist/api/types/SyncStatusResponse.d.ts +0 -9
- package/dist/api/types/SyncStatusResponse.js +0 -5
- package/dist/api/types/Target.d.ts +0 -14
- package/dist/api/types/Target.js +0 -5
- package/dist/api/types/TargetCreateInput.d.ts +0 -11
- package/dist/api/types/TargetCreateInput.js +0 -5
- package/dist/api/types/TargetField.d.ts +0 -19
- package/dist/api/types/TargetField.js +0 -5
- package/dist/api/types/TargetObject.d.ts +0 -12
- package/dist/api/types/TargetObject.js +0 -5
- package/dist/api/types/TargetResponse.d.ts +0 -12
- package/dist/api/types/TargetResponse.js +0 -5
- package/dist/api/types/TargetResponseEnvelope.d.ts +0 -7
- package/dist/api/types/TargetResponseEnvelope.js +0 -5
- package/dist/api/types/TypesType.d.ts +0 -4
- package/dist/api/types/TypesType.js +0 -5
- package/dist/api/types/UpdateBulkField.d.ts +0 -9
- package/dist/api/types/UpdateBulkField.js +0 -5
- package/dist/api/types/User.d.ts +0 -15
- package/dist/api/types/User.js +0 -5
- package/dist/api/types/UserEnvelope.d.ts +0 -7
- package/dist/api/types/UserEnvelope.js +0 -5
- package/dist/api/types/UtilEnumValue.d.ts +0 -7
- package/dist/api/types/UtilEnumValue.js +0 -5
- package/dist/api/types/UtilFieldType.d.ts +0 -14
- package/dist/api/types/UtilFieldType.js +0 -16
- package/dist/api/types/V2ConnectionForm.d.ts +0 -7
- package/dist/api/types/V2ConnectionForm.js +0 -5
- package/dist/api/types/V2CreateSharedConnectionResponseEnvelope.d.ts +0 -7
- package/dist/api/types/V2CreateSharedConnectionResponseEnvelope.js +0 -5
- package/dist/api/types/V2EnricherConfiguration.d.ts +0 -7
- package/dist/api/types/V2EnricherConfiguration.js +0 -5
- package/dist/api/types/V2EnricherMapping.d.ts +0 -7
- package/dist/api/types/V2EnricherMapping.js +0 -5
- package/dist/api/types/V2ExecutionLogType.d.ts +0 -12
- package/dist/api/types/V2ExecutionLogType.js +0 -14
- package/dist/api/types/V2GetEnrichmentInputFieldsResponseEnvelope.d.ts +0 -6
- package/dist/api/types/V2GetEnrichmentInputFieldsResponseEnvelope.js +0 -5
- package/dist/api/types/V2OrderedMapStringGithubComInvopopJsonschemaSchema.d.ts +0 -4
- package/dist/api/types/V2OrderedMapStringGithubComInvopopJsonschemaSchema.js +0 -5
- package/dist/api/types/V2SampleRecord.d.ts +0 -7
- package/dist/api/types/V2SampleRecord.js +0 -5
- package/dist/api/types/V2SchemaConfigurationFieldsItem.d.ts +0 -5
- package/dist/api/types/V2SchemaConfigurationFieldsItem.js +0 -5
- package/dist/api/types/V3BulkSyncSourceCapabilities.d.ts +0 -6
- package/dist/api/types/V3BulkSyncSourceCapabilities.js +0 -5
- package/dist/api/types/V4BulkSyncExecutionLogs.d.ts +0 -9
- package/dist/api/types/V4BulkSyncExecutionLogs.js +0 -5
- package/dist/api/types/V4BulkSyncExecutionLogsEnvelope.d.ts +0 -7
- package/dist/api/types/V4BulkSyncExecutionLogsEnvelope.js +0 -5
- package/dist/api/types/V4BulkSyncScheduleApi.d.ts +0 -18
- package/dist/api/types/V4BulkSyncScheduleApi.js +0 -5
- package/dist/api/types/V4ExportSyncLogsEnvelope.d.ts +0 -8
- package/dist/api/types/V4ExportSyncLogsEnvelope.js +0 -5
- package/dist/api/types/V4ExportSyncLogsResponse.d.ts +0 -7
- package/dist/api/types/V4ExportSyncLogsResponse.js +0 -5
- package/dist/api/types/V4GlobalErrorSubscribersResponse.d.ts +0 -7
- package/dist/api/types/V4GlobalErrorSubscribersResponse.js +0 -5
- package/dist/api/types/V4QueryResultsEnvelope.d.ts +0 -8
- package/dist/api/types/V4QueryResultsEnvelope.js +0 -5
- package/dist/api/types/V4RunQueryEnvelope.d.ts +0 -7
- package/dist/api/types/V4RunQueryEnvelope.js +0 -5
- package/dist/api/types/V4RunQueryResult.d.ts +0 -19
- package/dist/api/types/V4RunQueryResult.js +0 -5
- package/dist/api/types/V4TargetCreator.d.ts +0 -10
- package/dist/api/types/V4TargetCreator.js +0 -5
- package/dist/api/types/V4TargetObjectsResponseEnvelope.d.ts +0 -8
- package/dist/api/types/V4TargetObjectsResponseEnvelope.js +0 -5
- package/dist/api/types/V4TargetPropertyValues.d.ts +0 -14
- package/dist/api/types/V4TargetPropertyValues.js +0 -5
- package/dist/api/types/V4TargetPropertyValuesEnvelope.d.ts +0 -7
- package/dist/api/types/V4TargetPropertyValuesEnvelope.js +0 -5
- package/dist/api/types/V4UserFieldRequest.d.ts +0 -14
- package/dist/api/types/V4UserFieldRequest.js +0 -5
- package/dist/api/types/Webhook.d.ts +0 -11
- package/dist/api/types/Webhook.js +0 -5
- package/dist/api/types/WebhookEnvelope.d.ts +0 -7
- package/dist/api/types/WebhookEnvelope.js +0 -5
- package/dist/api/types/WebhookListEnvelope.d.ts +0 -7
- package/dist/api/types/WebhookListEnvelope.js +0 -5
- package/dist/api/types/WorkTaskStatus.d.ts +0 -10
- package/dist/api/types/WorkTaskStatus.js +0 -12
- package/dist/api/types/index.d.ts +0 -208
- package/dist/api/types/index.js +0 -224
- package/dist/core/auth/BasicAuth.d.ts +0 -8
- package/dist/core/auth/BasicAuth.js +0 -26
- package/dist/core/auth/BearerToken.d.ts +0 -5
- package/dist/core/auth/BearerToken.js +0 -15
- package/dist/core/auth/index.d.ts +0 -2
- package/dist/core/auth/index.js +0 -7
- package/dist/core/fetcher/APIResponse.d.ts +0 -10
- package/dist/core/fetcher/APIResponse.js +0 -2
- package/dist/core/fetcher/Fetcher.d.ts +0 -36
- package/dist/core/fetcher/Fetcher.js +0 -269
- package/dist/core/fetcher/Supplier.d.ts +0 -4
- package/dist/core/fetcher/Supplier.js +0 -22
- package/dist/core/fetcher/getHeader.d.ts +0 -1
- package/dist/core/fetcher/getHeader.js +0 -12
- package/dist/core/fetcher/index.d.ts +0 -5
- package/dist/core/fetcher/index.js +0 -9
- package/dist/core/index.d.ts +0 -3
- package/dist/core/index.js +0 -19
- package/dist/core/runtime/index.d.ts +0 -1
- package/dist/core/runtime/index.js +0 -5
- package/dist/core/runtime/runtime.d.ts +0 -8
- package/dist/core/runtime/runtime.js +0 -92
- package/dist/environments.d.ts +0 -7
- package/dist/environments.js +0 -9
- package/dist/errors/PolytomicError.d.ts +0 -12
- package/dist/errors/PolytomicError.js +0 -32
- package/dist/errors/PolytomicTimeoutError.d.ts +0 -6
- package/dist/errors/PolytomicTimeoutError.js +0 -13
- package/dist/errors/index.d.ts +0 -2
- package/dist/errors/index.js +0 -7
- package/dist/index.d.ts +0 -4
- package/dist/index.js +0 -34
- package/jest.config.js +0 -5
- /package/{dist/api/resources/identity → api/resources/entities}/client/index.d.ts +0 -0
- /package/{dist/api/resources/bulkSync/client/requests → api/resources/entities/client}/index.js +0 -0
- /package/{dist/api/resources/bulkSync/resources/executions → api/resources/entities}/index.d.ts +0 -0
- /package/{dist/api/resources/bulkSync/resources/executions → api/resources/entities}/index.js +0 -0
- /package/{dist/api/resources/bulkSync/resources/executions/client/requests/index.js → core/auth/AuthProvider.js} +0 -0
- /package/{dist/api/resources/bulkSync/resources/schedules/client/requests/index.js → core/auth/AuthRequest.js} +0 -0
- /package/{dist/api/resources/bulkSync/resources/schemas/client/requests/index.js → core/fetcher/EndpointMetadata.js} +0 -0
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
5
3
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
4
|
if (k2 === undefined) k2 = k;
|
|
7
5
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -18,13 +16,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
18
16
|
}) : function(o, v) {
|
|
19
17
|
o["default"] = v;
|
|
20
18
|
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
28
36
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
37
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
38
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -34,19 +42,18 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
34
42
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
43
|
});
|
|
36
44
|
};
|
|
37
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
38
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
39
|
-
};
|
|
40
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
-
exports.
|
|
42
|
-
const
|
|
46
|
+
exports.ConnectionsClient = void 0;
|
|
47
|
+
const BaseClient_1 = require("../../../../BaseClient");
|
|
43
48
|
const core = __importStar(require("../../../../core"));
|
|
44
|
-
const
|
|
45
|
-
const
|
|
49
|
+
const headers_1 = require("../../../../core/headers");
|
|
50
|
+
const environments = __importStar(require("../../../../environments"));
|
|
51
|
+
const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
|
|
46
52
|
const errors = __importStar(require("../../../../errors/index"));
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
53
|
+
const Polytomic = __importStar(require("../../../index"));
|
|
54
|
+
class ConnectionsClient {
|
|
55
|
+
constructor(options = {}) {
|
|
56
|
+
this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
|
|
50
57
|
}
|
|
51
58
|
/**
|
|
52
59
|
* Lists all connection types supported by this deployment.
|
|
@@ -58,65 +65,52 @@ class Connections {
|
|
|
58
65
|
* - Whether the connection type is enabled for the caller's organization.
|
|
59
66
|
* - Which modes (source, destination, enrichment) it can act as.
|
|
60
67
|
*
|
|
61
|
-
* @param {
|
|
68
|
+
* @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
69
|
*
|
|
63
|
-
* @throws {@link Polytomic.UnauthorizedError}
|
|
64
70
|
* @throws {@link Polytomic.InternalServerError}
|
|
65
71
|
*
|
|
66
72
|
* @example
|
|
67
73
|
* await client.connections.getTypes()
|
|
68
74
|
*/
|
|
69
75
|
getTypes(requestOptions) {
|
|
70
|
-
|
|
76
|
+
return core.HttpResponsePromise.fromPromise(this.__getTypes(requestOptions));
|
|
77
|
+
}
|
|
78
|
+
__getTypes(requestOptions) {
|
|
71
79
|
return __awaiter(this, void 0, void 0, function* () {
|
|
80
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
81
|
+
const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
82
|
+
"X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
|
|
83
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
72
84
|
const _response = yield core.fetcher({
|
|
73
|
-
url:
|
|
85
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, "api/connection_types"),
|
|
74
86
|
method: "GET",
|
|
75
|
-
headers:
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
: undefined,
|
|
80
|
-
"X-Fern-Language": "JavaScript",
|
|
81
|
-
"X-Fern-SDK-Name": "polytomic",
|
|
82
|
-
"X-Fern-SDK-Version": "1.18.1",
|
|
83
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
84
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
85
|
-
},
|
|
86
|
-
contentType: "application/json",
|
|
87
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
88
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
87
|
+
headers: _headers,
|
|
88
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
89
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
90
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
89
91
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
92
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
93
|
+
logging: this._options.logging,
|
|
90
94
|
});
|
|
91
95
|
if (_response.ok) {
|
|
92
|
-
return
|
|
96
|
+
return {
|
|
97
|
+
data: _response.body,
|
|
98
|
+
rawResponse: _response.rawResponse,
|
|
99
|
+
};
|
|
93
100
|
}
|
|
94
101
|
if (_response.error.reason === "status-code") {
|
|
95
102
|
switch (_response.error.statusCode) {
|
|
96
|
-
case 401:
|
|
97
|
-
throw new Polytomic.UnauthorizedError(_response.error.body);
|
|
98
103
|
case 500:
|
|
99
|
-
throw new Polytomic.InternalServerError(_response.error.body);
|
|
104
|
+
throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
|
|
100
105
|
default:
|
|
101
106
|
throw new errors.PolytomicError({
|
|
102
107
|
statusCode: _response.error.statusCode,
|
|
103
108
|
body: _response.error.body,
|
|
109
|
+
rawResponse: _response.rawResponse,
|
|
104
110
|
});
|
|
105
111
|
}
|
|
106
112
|
}
|
|
107
|
-
|
|
108
|
-
case "non-json":
|
|
109
|
-
throw new errors.PolytomicError({
|
|
110
|
-
statusCode: _response.error.statusCode,
|
|
111
|
-
body: _response.error.rawBody,
|
|
112
|
-
});
|
|
113
|
-
case "timeout":
|
|
114
|
-
throw new errors.PolytomicTimeoutError();
|
|
115
|
-
case "unknown":
|
|
116
|
-
throw new errors.PolytomicError({
|
|
117
|
-
message: _response.error.errorMessage,
|
|
118
|
-
});
|
|
119
|
-
}
|
|
113
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/connection_types");
|
|
120
114
|
});
|
|
121
115
|
}
|
|
122
116
|
/**
|
|
@@ -130,9 +124,8 @@ class Connections {
|
|
|
130
124
|
* connection instance and not a set of current credential values.
|
|
131
125
|
*
|
|
132
126
|
* @param {string} id - Connection type identifier (e.g. postgresql, salesforce, hubspot).
|
|
133
|
-
* @param {
|
|
127
|
+
* @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
134
128
|
*
|
|
135
|
-
* @throws {@link Polytomic.UnauthorizedError}
|
|
136
129
|
* @throws {@link Polytomic.NotFoundError}
|
|
137
130
|
* @throws {@link Polytomic.InternalServerError}
|
|
138
131
|
*
|
|
@@ -140,58 +133,44 @@ class Connections {
|
|
|
140
133
|
* await client.connections.getConnectionTypeSchema("postgresql")
|
|
141
134
|
*/
|
|
142
135
|
getConnectionTypeSchema(id, requestOptions) {
|
|
143
|
-
|
|
136
|
+
return core.HttpResponsePromise.fromPromise(this.__getConnectionTypeSchema(id, requestOptions));
|
|
137
|
+
}
|
|
138
|
+
__getConnectionTypeSchema(id, requestOptions) {
|
|
144
139
|
return __awaiter(this, void 0, void 0, function* () {
|
|
140
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
141
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
142
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
143
|
+
"X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
|
|
144
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
145
145
|
const _response = yield core.fetcher({
|
|
146
|
-
url:
|
|
146
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, `api/connection_types/${core.url.encodePathParam(id)}`),
|
|
147
147
|
method: "GET",
|
|
148
|
-
headers:
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
: undefined,
|
|
153
|
-
"X-Fern-Language": "JavaScript",
|
|
154
|
-
"X-Fern-SDK-Name": "polytomic",
|
|
155
|
-
"X-Fern-SDK-Version": "1.18.1",
|
|
156
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
157
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
158
|
-
},
|
|
159
|
-
contentType: "application/json",
|
|
160
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
161
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
148
|
+
headers: _headers,
|
|
149
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
150
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
151
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
162
152
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
153
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
154
|
+
logging: this._options.logging,
|
|
163
155
|
});
|
|
164
156
|
if (_response.ok) {
|
|
165
|
-
return _response.body;
|
|
157
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
166
158
|
}
|
|
167
159
|
if (_response.error.reason === "status-code") {
|
|
168
160
|
switch (_response.error.statusCode) {
|
|
169
|
-
case 401:
|
|
170
|
-
throw new Polytomic.UnauthorizedError(_response.error.body);
|
|
171
161
|
case 404:
|
|
172
|
-
throw new Polytomic.NotFoundError(_response.error.body);
|
|
162
|
+
throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
173
163
|
case 500:
|
|
174
|
-
throw new Polytomic.InternalServerError(_response.error.body);
|
|
164
|
+
throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
|
|
175
165
|
default:
|
|
176
166
|
throw new errors.PolytomicError({
|
|
177
167
|
statusCode: _response.error.statusCode,
|
|
178
168
|
body: _response.error.body,
|
|
169
|
+
rawResponse: _response.rawResponse,
|
|
179
170
|
});
|
|
180
171
|
}
|
|
181
172
|
}
|
|
182
|
-
|
|
183
|
-
case "non-json":
|
|
184
|
-
throw new errors.PolytomicError({
|
|
185
|
-
statusCode: _response.error.statusCode,
|
|
186
|
-
body: _response.error.rawBody,
|
|
187
|
-
});
|
|
188
|
-
case "timeout":
|
|
189
|
-
throw new errors.PolytomicTimeoutError();
|
|
190
|
-
case "unknown":
|
|
191
|
-
throw new errors.PolytomicError({
|
|
192
|
-
message: _response.error.errorMessage,
|
|
193
|
-
});
|
|
194
|
-
}
|
|
173
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/connection_types/{id}");
|
|
195
174
|
});
|
|
196
175
|
}
|
|
197
176
|
/**
|
|
@@ -207,10 +186,9 @@ class Connections {
|
|
|
207
186
|
*
|
|
208
187
|
* @param {string} type
|
|
209
188
|
* @param {Polytomic.GetConnectionTypeParameterValuesRequestSchema} request
|
|
210
|
-
* @param {
|
|
189
|
+
* @param {ConnectionsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
211
190
|
*
|
|
212
191
|
* @throws {@link Polytomic.BadRequestError}
|
|
213
|
-
* @throws {@link Polytomic.UnauthorizedError}
|
|
214
192
|
* @throws {@link Polytomic.NotFoundError}
|
|
215
193
|
* @throws {@link Polytomic.InternalServerError}
|
|
216
194
|
*
|
|
@@ -220,61 +198,53 @@ class Connections {
|
|
|
220
198
|
* })
|
|
221
199
|
*/
|
|
222
200
|
getTypeParameterValues(type, request, requestOptions) {
|
|
223
|
-
|
|
201
|
+
return core.HttpResponsePromise.fromPromise(this.__getTypeParameterValues(type, request, requestOptions));
|
|
202
|
+
}
|
|
203
|
+
__getTypeParameterValues(type, request, requestOptions) {
|
|
224
204
|
return __awaiter(this, void 0, void 0, function* () {
|
|
205
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
206
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
207
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
208
|
+
"Idempotency-Key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey,
|
|
209
|
+
"X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
|
|
210
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
225
211
|
const _response = yield core.fetcher({
|
|
226
|
-
url:
|
|
212
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, `api/connection_types/${core.url.encodePathParam(type)}/parameter_values`),
|
|
227
213
|
method: "POST",
|
|
228
|
-
headers:
|
|
229
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
230
|
-
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
231
|
-
? yield core.Supplier.get(this._options.version)
|
|
232
|
-
: undefined,
|
|
233
|
-
"X-Fern-Language": "JavaScript",
|
|
234
|
-
"X-Fern-SDK-Name": "polytomic",
|
|
235
|
-
"X-Fern-SDK-Version": "1.18.1",
|
|
236
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
237
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
238
|
-
},
|
|
214
|
+
headers: _headers,
|
|
239
215
|
contentType: "application/json",
|
|
216
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
217
|
+
requestType: "json",
|
|
240
218
|
body: request,
|
|
241
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
242
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
219
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
220
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
243
221
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
222
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
223
|
+
logging: this._options.logging,
|
|
244
224
|
});
|
|
245
225
|
if (_response.ok) {
|
|
246
|
-
return
|
|
226
|
+
return {
|
|
227
|
+
data: _response.body,
|
|
228
|
+
rawResponse: _response.rawResponse,
|
|
229
|
+
};
|
|
247
230
|
}
|
|
248
231
|
if (_response.error.reason === "status-code") {
|
|
249
232
|
switch (_response.error.statusCode) {
|
|
250
233
|
case 400:
|
|
251
|
-
throw new Polytomic.BadRequestError(_response.error.body);
|
|
252
|
-
case 401:
|
|
253
|
-
throw new Polytomic.UnauthorizedError(_response.error.body);
|
|
234
|
+
throw new Polytomic.BadRequestError(_response.error.body, _response.rawResponse);
|
|
254
235
|
case 404:
|
|
255
|
-
throw new Polytomic.NotFoundError(_response.error.body);
|
|
236
|
+
throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
256
237
|
case 500:
|
|
257
|
-
throw new Polytomic.InternalServerError(_response.error.body);
|
|
238
|
+
throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
|
|
258
239
|
default:
|
|
259
240
|
throw new errors.PolytomicError({
|
|
260
241
|
statusCode: _response.error.statusCode,
|
|
261
242
|
body: _response.error.body,
|
|
243
|
+
rawResponse: _response.rawResponse,
|
|
262
244
|
});
|
|
263
245
|
}
|
|
264
246
|
}
|
|
265
|
-
|
|
266
|
-
case "non-json":
|
|
267
|
-
throw new errors.PolytomicError({
|
|
268
|
-
statusCode: _response.error.statusCode,
|
|
269
|
-
body: _response.error.rawBody,
|
|
270
|
-
});
|
|
271
|
-
case "timeout":
|
|
272
|
-
throw new errors.PolytomicTimeoutError();
|
|
273
|
-
case "unknown":
|
|
274
|
-
throw new errors.PolytomicError({
|
|
275
|
-
message: _response.error.errorMessage,
|
|
276
|
-
});
|
|
277
|
-
}
|
|
247
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/api/connection_types/{type}/parameter_values");
|
|
278
248
|
});
|
|
279
249
|
}
|
|
280
250
|
/**
|
|
@@ -289,65 +259,53 @@ class Connections {
|
|
|
289
259
|
* [`POST /api/connections/{id}/schemas/refresh`](../../api-reference/schemas/refresh)
|
|
290
260
|
* followed by [`GET /api/connections/{id}/schemas/status`](../../api-reference/schemas/get-status).
|
|
291
261
|
*
|
|
292
|
-
* @param {
|
|
262
|
+
* @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
293
263
|
*
|
|
294
|
-
* @throws {@link Polytomic.UnauthorizedError}
|
|
295
264
|
* @throws {@link Polytomic.InternalServerError}
|
|
296
265
|
*
|
|
297
266
|
* @example
|
|
298
267
|
* await client.connections.list()
|
|
299
268
|
*/
|
|
300
269
|
list(requestOptions) {
|
|
301
|
-
|
|
270
|
+
return core.HttpResponsePromise.fromPromise(this.__list(requestOptions));
|
|
271
|
+
}
|
|
272
|
+
__list(requestOptions) {
|
|
302
273
|
return __awaiter(this, void 0, void 0, function* () {
|
|
274
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
275
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
276
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
277
|
+
"X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
|
|
278
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
303
279
|
const _response = yield core.fetcher({
|
|
304
|
-
url:
|
|
280
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, "api/connections"),
|
|
305
281
|
method: "GET",
|
|
306
|
-
headers:
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
: undefined,
|
|
311
|
-
"X-Fern-Language": "JavaScript",
|
|
312
|
-
"X-Fern-SDK-Name": "polytomic",
|
|
313
|
-
"X-Fern-SDK-Version": "1.18.1",
|
|
314
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
315
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
316
|
-
},
|
|
317
|
-
contentType: "application/json",
|
|
318
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
319
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
282
|
+
headers: _headers,
|
|
283
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
284
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
285
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
320
286
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
287
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
288
|
+
logging: this._options.logging,
|
|
321
289
|
});
|
|
322
290
|
if (_response.ok) {
|
|
323
|
-
return
|
|
291
|
+
return {
|
|
292
|
+
data: _response.body,
|
|
293
|
+
rawResponse: _response.rawResponse,
|
|
294
|
+
};
|
|
324
295
|
}
|
|
325
296
|
if (_response.error.reason === "status-code") {
|
|
326
297
|
switch (_response.error.statusCode) {
|
|
327
|
-
case 401:
|
|
328
|
-
throw new Polytomic.UnauthorizedError(_response.error.body);
|
|
329
298
|
case 500:
|
|
330
|
-
throw new Polytomic.InternalServerError(_response.error.body);
|
|
299
|
+
throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
|
|
331
300
|
default:
|
|
332
301
|
throw new errors.PolytomicError({
|
|
333
302
|
statusCode: _response.error.statusCode,
|
|
334
303
|
body: _response.error.body,
|
|
304
|
+
rawResponse: _response.rawResponse,
|
|
335
305
|
});
|
|
336
306
|
}
|
|
337
307
|
}
|
|
338
|
-
|
|
339
|
-
case "non-json":
|
|
340
|
-
throw new errors.PolytomicError({
|
|
341
|
-
statusCode: _response.error.statusCode,
|
|
342
|
-
body: _response.error.rawBody,
|
|
343
|
-
});
|
|
344
|
-
case "timeout":
|
|
345
|
-
throw new errors.PolytomicTimeoutError();
|
|
346
|
-
case "unknown":
|
|
347
|
-
throw new errors.PolytomicError({
|
|
348
|
-
message: _response.error.errorMessage,
|
|
349
|
-
});
|
|
350
|
-
}
|
|
308
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/connections");
|
|
351
309
|
});
|
|
352
310
|
}
|
|
353
311
|
/**
|
|
@@ -364,7 +322,7 @@ class Connections {
|
|
|
364
322
|
* > endpoint cannot be reached.
|
|
365
323
|
*
|
|
366
324
|
* @param {Polytomic.CreateConnectionRequestSchema} request
|
|
367
|
-
* @param {
|
|
325
|
+
* @param {ConnectionsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
368
326
|
*
|
|
369
327
|
* @throws {@link Polytomic.BadRequestError}
|
|
370
328
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
@@ -386,63 +344,57 @@ class Connections {
|
|
|
386
344
|
* })
|
|
387
345
|
*/
|
|
388
346
|
create(request, requestOptions) {
|
|
389
|
-
|
|
347
|
+
return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
|
|
348
|
+
}
|
|
349
|
+
__create(request, requestOptions) {
|
|
390
350
|
return __awaiter(this, void 0, void 0, function* () {
|
|
351
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
352
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
353
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
354
|
+
"Idempotency-Key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey,
|
|
355
|
+
"X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
|
|
356
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
391
357
|
const _response = yield core.fetcher({
|
|
392
|
-
url:
|
|
358
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, "api/connections"),
|
|
393
359
|
method: "POST",
|
|
394
|
-
headers:
|
|
395
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
396
|
-
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
397
|
-
? yield core.Supplier.get(this._options.version)
|
|
398
|
-
: undefined,
|
|
399
|
-
"X-Fern-Language": "JavaScript",
|
|
400
|
-
"X-Fern-SDK-Name": "polytomic",
|
|
401
|
-
"X-Fern-SDK-Version": "1.18.1",
|
|
402
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
403
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
404
|
-
},
|
|
360
|
+
headers: _headers,
|
|
405
361
|
contentType: "application/json",
|
|
362
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
363
|
+
requestType: "json",
|
|
406
364
|
body: request,
|
|
407
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
408
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
365
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
366
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
409
367
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
368
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
369
|
+
logging: this._options.logging,
|
|
410
370
|
});
|
|
411
371
|
if (_response.ok) {
|
|
412
|
-
return
|
|
372
|
+
return {
|
|
373
|
+
data: _response.body,
|
|
374
|
+
rawResponse: _response.rawResponse,
|
|
375
|
+
};
|
|
413
376
|
}
|
|
414
377
|
if (_response.error.reason === "status-code") {
|
|
415
378
|
switch (_response.error.statusCode) {
|
|
416
379
|
case 400:
|
|
417
|
-
throw new Polytomic.BadRequestError(_response.error.body);
|
|
380
|
+
throw new Polytomic.BadRequestError(_response.error.body, _response.rawResponse);
|
|
418
381
|
case 401:
|
|
419
|
-
throw new Polytomic.UnauthorizedError(_response.error.body);
|
|
382
|
+
throw new Polytomic.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
420
383
|
case 403:
|
|
421
|
-
throw new Polytomic.ForbiddenError(_response.error.body);
|
|
384
|
+
throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
422
385
|
case 422:
|
|
423
|
-
throw new Polytomic.UnprocessableEntityError(_response.error.body);
|
|
386
|
+
throw new Polytomic.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
424
387
|
case 500:
|
|
425
|
-
throw new Polytomic.InternalServerError(_response.error.body);
|
|
388
|
+
throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
|
|
426
389
|
default:
|
|
427
390
|
throw new errors.PolytomicError({
|
|
428
391
|
statusCode: _response.error.statusCode,
|
|
429
392
|
body: _response.error.body,
|
|
393
|
+
rawResponse: _response.rawResponse,
|
|
430
394
|
});
|
|
431
395
|
}
|
|
432
396
|
}
|
|
433
|
-
|
|
434
|
-
case "non-json":
|
|
435
|
-
throw new errors.PolytomicError({
|
|
436
|
-
statusCode: _response.error.statusCode,
|
|
437
|
-
body: _response.error.rawBody,
|
|
438
|
-
});
|
|
439
|
-
case "timeout":
|
|
440
|
-
throw new errors.PolytomicTimeoutError();
|
|
441
|
-
case "unknown":
|
|
442
|
-
throw new errors.PolytomicError({
|
|
443
|
-
message: _response.error.errorMessage,
|
|
444
|
-
});
|
|
445
|
-
}
|
|
397
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/api/connections");
|
|
446
398
|
});
|
|
447
399
|
}
|
|
448
400
|
/**
|
|
@@ -453,7 +405,7 @@ class Connections {
|
|
|
453
405
|
* - [Embedding authentication](../../../guides/embedding-authentication), a guide to using Polytomic Connect.
|
|
454
406
|
*
|
|
455
407
|
* @param {Polytomic.ConnectCardRequest} request
|
|
456
|
-
* @param {
|
|
408
|
+
* @param {ConnectionsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
457
409
|
*
|
|
458
410
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
459
411
|
* @throws {@link Polytomic.ForbiddenError}
|
|
@@ -467,61 +419,55 @@ class Connections {
|
|
|
467
419
|
* })
|
|
468
420
|
*/
|
|
469
421
|
connect(request, requestOptions) {
|
|
470
|
-
|
|
422
|
+
return core.HttpResponsePromise.fromPromise(this.__connect(request, requestOptions));
|
|
423
|
+
}
|
|
424
|
+
__connect(request, requestOptions) {
|
|
471
425
|
return __awaiter(this, void 0, void 0, function* () {
|
|
426
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
427
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
428
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
429
|
+
"Idempotency-Key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey,
|
|
430
|
+
"X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
|
|
431
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
472
432
|
const _response = yield core.fetcher({
|
|
473
|
-
url:
|
|
433
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, "api/connections/connect/"),
|
|
474
434
|
method: "POST",
|
|
475
|
-
headers:
|
|
476
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
477
|
-
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
478
|
-
? yield core.Supplier.get(this._options.version)
|
|
479
|
-
: undefined,
|
|
480
|
-
"X-Fern-Language": "JavaScript",
|
|
481
|
-
"X-Fern-SDK-Name": "polytomic",
|
|
482
|
-
"X-Fern-SDK-Version": "1.18.1",
|
|
483
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
484
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
485
|
-
},
|
|
435
|
+
headers: _headers,
|
|
486
436
|
contentType: "application/json",
|
|
437
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
438
|
+
requestType: "json",
|
|
487
439
|
body: request,
|
|
488
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
489
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
440
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
441
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
490
442
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
443
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
444
|
+
logging: this._options.logging,
|
|
491
445
|
});
|
|
492
446
|
if (_response.ok) {
|
|
493
|
-
return
|
|
447
|
+
return {
|
|
448
|
+
data: _response.body,
|
|
449
|
+
rawResponse: _response.rawResponse,
|
|
450
|
+
};
|
|
494
451
|
}
|
|
495
452
|
if (_response.error.reason === "status-code") {
|
|
496
453
|
switch (_response.error.statusCode) {
|
|
497
454
|
case 401:
|
|
498
|
-
throw new Polytomic.UnauthorizedError(_response.error.body);
|
|
455
|
+
throw new Polytomic.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
499
456
|
case 403:
|
|
500
|
-
throw new Polytomic.ForbiddenError(_response.error.body);
|
|
457
|
+
throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
501
458
|
case 422:
|
|
502
|
-
throw new Polytomic.UnprocessableEntityError(_response.error.body);
|
|
459
|
+
throw new Polytomic.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
503
460
|
case 500:
|
|
504
|
-
throw new Polytomic.InternalServerError(_response.error.body);
|
|
461
|
+
throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
|
|
505
462
|
default:
|
|
506
463
|
throw new errors.PolytomicError({
|
|
507
464
|
statusCode: _response.error.statusCode,
|
|
508
465
|
body: _response.error.body,
|
|
466
|
+
rawResponse: _response.rawResponse,
|
|
509
467
|
});
|
|
510
468
|
}
|
|
511
469
|
}
|
|
512
|
-
|
|
513
|
-
case "non-json":
|
|
514
|
-
throw new errors.PolytomicError({
|
|
515
|
-
statusCode: _response.error.statusCode,
|
|
516
|
-
body: _response.error.rawBody,
|
|
517
|
-
});
|
|
518
|
-
case "timeout":
|
|
519
|
-
throw new errors.PolytomicTimeoutError();
|
|
520
|
-
case "unknown":
|
|
521
|
-
throw new errors.PolytomicError({
|
|
522
|
-
message: _response.error.errorMessage,
|
|
523
|
-
});
|
|
524
|
-
}
|
|
470
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/api/connections/connect/");
|
|
525
471
|
});
|
|
526
472
|
}
|
|
527
473
|
/**
|
|
@@ -539,10 +485,9 @@ class Connections {
|
|
|
539
485
|
* succeeds.
|
|
540
486
|
*
|
|
541
487
|
* @param {Polytomic.TestConnectionRequest} request
|
|
542
|
-
* @param {
|
|
488
|
+
* @param {ConnectionsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
543
489
|
*
|
|
544
490
|
* @throws {@link Polytomic.BadRequestError}
|
|
545
|
-
* @throws {@link Polytomic.UnauthorizedError}
|
|
546
491
|
* @throws {@link Polytomic.NotFoundError}
|
|
547
492
|
* @throws {@link Polytomic.InternalServerError}
|
|
548
493
|
*
|
|
@@ -559,61 +504,49 @@ class Connections {
|
|
|
559
504
|
* })
|
|
560
505
|
*/
|
|
561
506
|
testConnection(request, requestOptions) {
|
|
562
|
-
|
|
507
|
+
return core.HttpResponsePromise.fromPromise(this.__testConnection(request, requestOptions));
|
|
508
|
+
}
|
|
509
|
+
__testConnection(request, requestOptions) {
|
|
563
510
|
return __awaiter(this, void 0, void 0, function* () {
|
|
511
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
512
|
+
const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
513
|
+
"Idempotency-Key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey,
|
|
514
|
+
"X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
|
|
515
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
564
516
|
const _response = yield core.fetcher({
|
|
565
|
-
url:
|
|
517
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, "api/connections/test"),
|
|
566
518
|
method: "POST",
|
|
567
|
-
headers:
|
|
568
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
569
|
-
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
570
|
-
? yield core.Supplier.get(this._options.version)
|
|
571
|
-
: undefined,
|
|
572
|
-
"X-Fern-Language": "JavaScript",
|
|
573
|
-
"X-Fern-SDK-Name": "polytomic",
|
|
574
|
-
"X-Fern-SDK-Version": "1.18.1",
|
|
575
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
576
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
577
|
-
},
|
|
519
|
+
headers: _headers,
|
|
578
520
|
contentType: "application/json",
|
|
521
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
522
|
+
requestType: "json",
|
|
579
523
|
body: request,
|
|
580
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
581
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
524
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
525
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
582
526
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
527
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
528
|
+
logging: this._options.logging,
|
|
583
529
|
});
|
|
584
530
|
if (_response.ok) {
|
|
585
|
-
return;
|
|
531
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
586
532
|
}
|
|
587
533
|
if (_response.error.reason === "status-code") {
|
|
588
534
|
switch (_response.error.statusCode) {
|
|
589
535
|
case 400:
|
|
590
|
-
throw new Polytomic.BadRequestError(_response.error.body);
|
|
591
|
-
case 401:
|
|
592
|
-
throw new Polytomic.UnauthorizedError(_response.error.body);
|
|
536
|
+
throw new Polytomic.BadRequestError(_response.error.body, _response.rawResponse);
|
|
593
537
|
case 404:
|
|
594
|
-
throw new Polytomic.NotFoundError(_response.error.body);
|
|
538
|
+
throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
595
539
|
case 500:
|
|
596
|
-
throw new Polytomic.InternalServerError(_response.error.body);
|
|
540
|
+
throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
|
|
597
541
|
default:
|
|
598
542
|
throw new errors.PolytomicError({
|
|
599
543
|
statusCode: _response.error.statusCode,
|
|
600
544
|
body: _response.error.body,
|
|
545
|
+
rawResponse: _response.rawResponse,
|
|
601
546
|
});
|
|
602
547
|
}
|
|
603
548
|
}
|
|
604
|
-
|
|
605
|
-
case "non-json":
|
|
606
|
-
throw new errors.PolytomicError({
|
|
607
|
-
statusCode: _response.error.statusCode,
|
|
608
|
-
body: _response.error.rawBody,
|
|
609
|
-
});
|
|
610
|
-
case "timeout":
|
|
611
|
-
throw new errors.PolytomicTimeoutError();
|
|
612
|
-
case "unknown":
|
|
613
|
-
throw new errors.PolytomicError({
|
|
614
|
-
message: _response.error.errorMessage,
|
|
615
|
-
});
|
|
616
|
-
}
|
|
549
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/api/connections/test");
|
|
617
550
|
});
|
|
618
551
|
}
|
|
619
552
|
/**
|
|
@@ -625,9 +558,8 @@ class Connections {
|
|
|
625
558
|
* [`GET /api/connections/{id}/schemas/status`](../../../api-reference/schemas/get-status).
|
|
626
559
|
*
|
|
627
560
|
* @param {string} id
|
|
628
|
-
* @param {
|
|
561
|
+
* @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
629
562
|
*
|
|
630
|
-
* @throws {@link Polytomic.UnauthorizedError}
|
|
631
563
|
* @throws {@link Polytomic.NotFoundError}
|
|
632
564
|
* @throws {@link Polytomic.InternalServerError}
|
|
633
565
|
*
|
|
@@ -635,58 +567,44 @@ class Connections {
|
|
|
635
567
|
* await client.connections.get("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
636
568
|
*/
|
|
637
569
|
get(id, requestOptions) {
|
|
638
|
-
|
|
570
|
+
return core.HttpResponsePromise.fromPromise(this.__get(id, requestOptions));
|
|
571
|
+
}
|
|
572
|
+
__get(id, requestOptions) {
|
|
639
573
|
return __awaiter(this, void 0, void 0, function* () {
|
|
574
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
575
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
576
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
577
|
+
"X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
|
|
578
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
640
579
|
const _response = yield core.fetcher({
|
|
641
|
-
url:
|
|
580
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, `api/connections/${core.url.encodePathParam(id)}`),
|
|
642
581
|
method: "GET",
|
|
643
|
-
headers:
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
: undefined,
|
|
648
|
-
"X-Fern-Language": "JavaScript",
|
|
649
|
-
"X-Fern-SDK-Name": "polytomic",
|
|
650
|
-
"X-Fern-SDK-Version": "1.18.1",
|
|
651
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
652
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
653
|
-
},
|
|
654
|
-
contentType: "application/json",
|
|
655
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
656
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
582
|
+
headers: _headers,
|
|
583
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
584
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
585
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
657
586
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
587
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
588
|
+
logging: this._options.logging,
|
|
658
589
|
});
|
|
659
590
|
if (_response.ok) {
|
|
660
|
-
return _response.body;
|
|
591
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
661
592
|
}
|
|
662
593
|
if (_response.error.reason === "status-code") {
|
|
663
594
|
switch (_response.error.statusCode) {
|
|
664
|
-
case 401:
|
|
665
|
-
throw new Polytomic.UnauthorizedError(_response.error.body);
|
|
666
595
|
case 404:
|
|
667
|
-
throw new Polytomic.NotFoundError(_response.error.body);
|
|
596
|
+
throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
668
597
|
case 500:
|
|
669
|
-
throw new Polytomic.InternalServerError(_response.error.body);
|
|
598
|
+
throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
|
|
670
599
|
default:
|
|
671
600
|
throw new errors.PolytomicError({
|
|
672
601
|
statusCode: _response.error.statusCode,
|
|
673
602
|
body: _response.error.body,
|
|
603
|
+
rawResponse: _response.rawResponse,
|
|
674
604
|
});
|
|
675
605
|
}
|
|
676
606
|
}
|
|
677
|
-
|
|
678
|
-
case "non-json":
|
|
679
|
-
throw new errors.PolytomicError({
|
|
680
|
-
statusCode: _response.error.statusCode,
|
|
681
|
-
body: _response.error.rawBody,
|
|
682
|
-
});
|
|
683
|
-
case "timeout":
|
|
684
|
-
throw new errors.PolytomicTimeoutError();
|
|
685
|
-
case "unknown":
|
|
686
|
-
throw new errors.PolytomicError({
|
|
687
|
-
message: _response.error.errorMessage,
|
|
688
|
-
});
|
|
689
|
-
}
|
|
607
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/connections/{id}");
|
|
690
608
|
});
|
|
691
609
|
}
|
|
692
610
|
/**
|
|
@@ -707,7 +625,7 @@ class Connections {
|
|
|
707
625
|
*
|
|
708
626
|
* @param {string} id
|
|
709
627
|
* @param {Polytomic.UpdateConnectionRequestSchema} request
|
|
710
|
-
* @param {
|
|
628
|
+
* @param {ConnectionsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
711
629
|
*
|
|
712
630
|
* @throws {@link Polytomic.BadRequestError}
|
|
713
631
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
@@ -729,65 +647,59 @@ class Connections {
|
|
|
729
647
|
* })
|
|
730
648
|
*/
|
|
731
649
|
update(id, request, requestOptions) {
|
|
732
|
-
|
|
650
|
+
return core.HttpResponsePromise.fromPromise(this.__update(id, request, requestOptions));
|
|
651
|
+
}
|
|
652
|
+
__update(id, request, requestOptions) {
|
|
733
653
|
return __awaiter(this, void 0, void 0, function* () {
|
|
654
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
655
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
656
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
657
|
+
"Idempotency-Key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey,
|
|
658
|
+
"X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
|
|
659
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
734
660
|
const _response = yield core.fetcher({
|
|
735
|
-
url:
|
|
661
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, `api/connections/${core.url.encodePathParam(id)}`),
|
|
736
662
|
method: "PUT",
|
|
737
|
-
headers:
|
|
738
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
739
|
-
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
740
|
-
? yield core.Supplier.get(this._options.version)
|
|
741
|
-
: undefined,
|
|
742
|
-
"X-Fern-Language": "JavaScript",
|
|
743
|
-
"X-Fern-SDK-Name": "polytomic",
|
|
744
|
-
"X-Fern-SDK-Version": "1.18.1",
|
|
745
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
746
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
747
|
-
},
|
|
663
|
+
headers: _headers,
|
|
748
664
|
contentType: "application/json",
|
|
665
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
666
|
+
requestType: "json",
|
|
749
667
|
body: request,
|
|
750
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
751
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
668
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
669
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
752
670
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
671
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
672
|
+
logging: this._options.logging,
|
|
753
673
|
});
|
|
754
674
|
if (_response.ok) {
|
|
755
|
-
return
|
|
675
|
+
return {
|
|
676
|
+
data: _response.body,
|
|
677
|
+
rawResponse: _response.rawResponse,
|
|
678
|
+
};
|
|
756
679
|
}
|
|
757
680
|
if (_response.error.reason === "status-code") {
|
|
758
681
|
switch (_response.error.statusCode) {
|
|
759
682
|
case 400:
|
|
760
|
-
throw new Polytomic.BadRequestError(_response.error.body);
|
|
683
|
+
throw new Polytomic.BadRequestError(_response.error.body, _response.rawResponse);
|
|
761
684
|
case 401:
|
|
762
|
-
throw new Polytomic.UnauthorizedError(_response.error.body);
|
|
685
|
+
throw new Polytomic.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
763
686
|
case 403:
|
|
764
|
-
throw new Polytomic.ForbiddenError(_response.error.body);
|
|
687
|
+
throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
765
688
|
case 404:
|
|
766
|
-
throw new Polytomic.NotFoundError(_response.error.body);
|
|
689
|
+
throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
767
690
|
case 422:
|
|
768
|
-
throw new Polytomic.UnprocessableEntityError(_response.error.body);
|
|
691
|
+
throw new Polytomic.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
769
692
|
case 500:
|
|
770
|
-
throw new Polytomic.InternalServerError(_response.error.body);
|
|
693
|
+
throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
|
|
771
694
|
default:
|
|
772
695
|
throw new errors.PolytomicError({
|
|
773
696
|
statusCode: _response.error.statusCode,
|
|
774
697
|
body: _response.error.body,
|
|
698
|
+
rawResponse: _response.rawResponse,
|
|
775
699
|
});
|
|
776
700
|
}
|
|
777
701
|
}
|
|
778
|
-
|
|
779
|
-
case "non-json":
|
|
780
|
-
throw new errors.PolytomicError({
|
|
781
|
-
statusCode: _response.error.statusCode,
|
|
782
|
-
body: _response.error.rawBody,
|
|
783
|
-
});
|
|
784
|
-
case "timeout":
|
|
785
|
-
throw new errors.PolytomicTimeoutError();
|
|
786
|
-
case "unknown":
|
|
787
|
-
throw new errors.PolytomicError({
|
|
788
|
-
message: _response.error.errorMessage,
|
|
789
|
-
});
|
|
790
|
-
}
|
|
702
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PUT", "/api/connections/{id}");
|
|
791
703
|
});
|
|
792
704
|
}
|
|
793
705
|
/**
|
|
@@ -800,7 +712,7 @@ class Connections {
|
|
|
800
712
|
*
|
|
801
713
|
* @param {string} id
|
|
802
714
|
* @param {Polytomic.ConnectionsRemoveRequest} request
|
|
803
|
-
* @param {
|
|
715
|
+
* @param {ConnectionsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
804
716
|
*
|
|
805
717
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
806
718
|
* @throws {@link Polytomic.ForbiddenError}
|
|
@@ -814,68 +726,59 @@ class Connections {
|
|
|
814
726
|
* })
|
|
815
727
|
*/
|
|
816
728
|
remove(id, request = {}, requestOptions) {
|
|
817
|
-
|
|
818
|
-
|
|
729
|
+
return core.HttpResponsePromise.fromPromise(this.__remove(id, request, requestOptions));
|
|
730
|
+
}
|
|
731
|
+
__remove(id_1) {
|
|
732
|
+
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
733
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
819
734
|
const { force } = request;
|
|
820
|
-
const _queryParams = {
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
735
|
+
const _queryParams = {
|
|
736
|
+
force,
|
|
737
|
+
};
|
|
738
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
739
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
740
|
+
"Idempotency-Key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey,
|
|
741
|
+
"X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
|
|
742
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
824
743
|
const _response = yield core.fetcher({
|
|
825
|
-
url:
|
|
744
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, `api/connections/${core.url.encodePathParam(id)}`),
|
|
826
745
|
method: "DELETE",
|
|
827
|
-
headers:
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
836
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
837
|
-
},
|
|
838
|
-
contentType: "application/json",
|
|
839
|
-
queryParameters: _queryParams,
|
|
840
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
841
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
746
|
+
headers: _headers,
|
|
747
|
+
queryString: core.url
|
|
748
|
+
.queryBuilder()
|
|
749
|
+
.addMany(_queryParams)
|
|
750
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
751
|
+
.build(),
|
|
752
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
753
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
842
754
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
755
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
756
|
+
logging: this._options.logging,
|
|
843
757
|
});
|
|
844
758
|
if (_response.ok) {
|
|
845
|
-
return;
|
|
759
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
846
760
|
}
|
|
847
761
|
if (_response.error.reason === "status-code") {
|
|
848
762
|
switch (_response.error.statusCode) {
|
|
849
763
|
case 401:
|
|
850
|
-
throw new Polytomic.UnauthorizedError(_response.error.body);
|
|
764
|
+
throw new Polytomic.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
851
765
|
case 403:
|
|
852
|
-
throw new Polytomic.ForbiddenError(_response.error.body);
|
|
766
|
+
throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
853
767
|
case 404:
|
|
854
|
-
throw new Polytomic.NotFoundError(_response.error.body);
|
|
768
|
+
throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
855
769
|
case 422:
|
|
856
|
-
throw new Polytomic.UnprocessableEntityError(_response.error.body);
|
|
770
|
+
throw new Polytomic.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
857
771
|
case 500:
|
|
858
|
-
throw new Polytomic.InternalServerError(_response.error.body);
|
|
772
|
+
throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
|
|
859
773
|
default:
|
|
860
774
|
throw new errors.PolytomicError({
|
|
861
775
|
statusCode: _response.error.statusCode,
|
|
862
776
|
body: _response.error.body,
|
|
777
|
+
rawResponse: _response.rawResponse,
|
|
863
778
|
});
|
|
864
779
|
}
|
|
865
780
|
}
|
|
866
|
-
|
|
867
|
-
case "non-json":
|
|
868
|
-
throw new errors.PolytomicError({
|
|
869
|
-
statusCode: _response.error.statusCode,
|
|
870
|
-
body: _response.error.rawBody,
|
|
871
|
-
});
|
|
872
|
-
case "timeout":
|
|
873
|
-
throw new errors.PolytomicTimeoutError();
|
|
874
|
-
case "unknown":
|
|
875
|
-
throw new errors.PolytomicError({
|
|
876
|
-
message: _response.error.errorMessage,
|
|
877
|
-
});
|
|
878
|
-
}
|
|
781
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/api/connections/{id}");
|
|
879
782
|
});
|
|
880
783
|
}
|
|
881
784
|
/**
|
|
@@ -891,9 +794,8 @@ class Connections {
|
|
|
891
794
|
* which lets you resolve completions before the connection has been created.
|
|
892
795
|
*
|
|
893
796
|
* @param {string} id
|
|
894
|
-
* @param {
|
|
797
|
+
* @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
895
798
|
*
|
|
896
|
-
* @throws {@link Polytomic.UnauthorizedError}
|
|
897
799
|
* @throws {@link Polytomic.NotFoundError}
|
|
898
800
|
* @throws {@link Polytomic.InternalServerError}
|
|
899
801
|
*
|
|
@@ -901,220 +803,452 @@ class Connections {
|
|
|
901
803
|
* await client.connections.getParameterValues("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
902
804
|
*/
|
|
903
805
|
getParameterValues(id, requestOptions) {
|
|
904
|
-
|
|
806
|
+
return core.HttpResponsePromise.fromPromise(this.__getParameterValues(id, requestOptions));
|
|
807
|
+
}
|
|
808
|
+
__getParameterValues(id, requestOptions) {
|
|
905
809
|
return __awaiter(this, void 0, void 0, function* () {
|
|
810
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
811
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
812
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
813
|
+
"X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
|
|
814
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
906
815
|
const _response = yield core.fetcher({
|
|
907
|
-
url:
|
|
816
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, `api/connections/${core.url.encodePathParam(id)}/parameter_values`),
|
|
908
817
|
method: "GET",
|
|
909
|
-
headers:
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
: undefined,
|
|
914
|
-
"X-Fern-Language": "JavaScript",
|
|
915
|
-
"X-Fern-SDK-Name": "polytomic",
|
|
916
|
-
"X-Fern-SDK-Version": "1.18.1",
|
|
917
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
918
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
919
|
-
},
|
|
920
|
-
contentType: "application/json",
|
|
921
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
922
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
818
|
+
headers: _headers,
|
|
819
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
820
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
821
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
923
822
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
823
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
824
|
+
logging: this._options.logging,
|
|
924
825
|
});
|
|
925
826
|
if (_response.ok) {
|
|
926
|
-
return
|
|
827
|
+
return {
|
|
828
|
+
data: _response.body,
|
|
829
|
+
rawResponse: _response.rawResponse,
|
|
830
|
+
};
|
|
927
831
|
}
|
|
928
832
|
if (_response.error.reason === "status-code") {
|
|
929
833
|
switch (_response.error.statusCode) {
|
|
930
|
-
case 401:
|
|
931
|
-
throw new Polytomic.UnauthorizedError(_response.error.body);
|
|
932
834
|
case 404:
|
|
933
|
-
throw new Polytomic.NotFoundError(_response.error.body);
|
|
835
|
+
throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
934
836
|
case 500:
|
|
935
|
-
throw new Polytomic.InternalServerError(_response.error.body);
|
|
837
|
+
throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
|
|
936
838
|
default:
|
|
937
839
|
throw new errors.PolytomicError({
|
|
938
840
|
statusCode: _response.error.statusCode,
|
|
939
841
|
body: _response.error.body,
|
|
842
|
+
rawResponse: _response.rawResponse,
|
|
940
843
|
});
|
|
941
844
|
}
|
|
942
845
|
}
|
|
943
|
-
|
|
944
|
-
case "non-json":
|
|
945
|
-
throw new errors.PolytomicError({
|
|
946
|
-
statusCode: _response.error.statusCode,
|
|
947
|
-
body: _response.error.rawBody,
|
|
948
|
-
});
|
|
949
|
-
case "timeout":
|
|
950
|
-
throw new errors.PolytomicTimeoutError();
|
|
951
|
-
case "unknown":
|
|
952
|
-
throw new errors.PolytomicError({
|
|
953
|
-
message: _response.error.errorMessage,
|
|
954
|
-
});
|
|
955
|
-
}
|
|
846
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/connections/{id}/parameter_values");
|
|
956
847
|
});
|
|
957
848
|
}
|
|
958
849
|
/**
|
|
959
|
-
*
|
|
850
|
+
* @beta This endpoint is in pre-release and may change.
|
|
851
|
+
*
|
|
852
|
+
* Proxies an HTTP request to a connection's underlying API using the connection's stored credentials, subject to per-connection rate limits and size caps.
|
|
853
|
+
*
|
|
854
|
+
* This endpoint is intended for controlled passthrough use, not as a general
|
|
855
|
+
* replacement for Polytomic's modeled endpoints. The request is executed with the
|
|
856
|
+
* connection's stored credentials and inherited base URL, headers, and query
|
|
857
|
+
* parameters.
|
|
858
|
+
*
|
|
859
|
+
* Before building requests dynamically, call
|
|
860
|
+
* [`GET /api/connections/{id}/proxy/info`](../../../../api-reference/connections/get-proxy-info)
|
|
861
|
+
* to inspect the inherited base URL, blocked headers, accepted body types, and
|
|
862
|
+
* size and rate limits.
|
|
863
|
+
*
|
|
864
|
+
* ## Important behavior
|
|
960
865
|
*
|
|
961
|
-
*
|
|
962
|
-
*
|
|
963
|
-
*
|
|
866
|
+
* - `request.path` must be relative and start with `/`.
|
|
867
|
+
* - Use either `request.query` or `request.rawQuery`, not both.
|
|
868
|
+
* - Caller-supplied headers are merged with inherited headers, but inherited auth
|
|
869
|
+
* headers cannot be overridden.
|
|
870
|
+
* - The proxy strips a fixed set of request and response headers for safety.
|
|
871
|
+
* - Response bodies larger than the configured maximum are truncated, and
|
|
872
|
+
* `truncated` is set to `true`.
|
|
964
873
|
*
|
|
965
|
-
*
|
|
966
|
-
*
|
|
967
|
-
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
874
|
+
* The response includes `proxyCallId`, which you can use to correlate the call
|
|
875
|
+
* with audit logs.
|
|
968
876
|
*
|
|
877
|
+
* @param {string} id - Unique identifier of the connection to proxy the request through.
|
|
878
|
+
* @param {Polytomic.ExecuteConnectionProxyRequest} request
|
|
879
|
+
* @param {ConnectionsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
880
|
+
*
|
|
881
|
+
* @throws {@link Polytomic.BadRequestError}
|
|
969
882
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
970
883
|
* @throws {@link Polytomic.ForbiddenError}
|
|
971
884
|
* @throws {@link Polytomic.NotFoundError}
|
|
972
|
-
* @throws {@link Polytomic.
|
|
885
|
+
* @throws {@link Polytomic.TooManyRequestsError}
|
|
973
886
|
* @throws {@link Polytomic.InternalServerError}
|
|
887
|
+
* @throws {@link Polytomic.BadGatewayError}
|
|
888
|
+
* @throws {@link Polytomic.GatewayTimeoutError}
|
|
974
889
|
*
|
|
975
890
|
* @example
|
|
976
|
-
* await client.connections.
|
|
977
|
-
*
|
|
891
|
+
* await client.connections.executeProxy("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
892
|
+
* request: {
|
|
893
|
+
* method: "GET",
|
|
894
|
+
* path: "/v1/objects"
|
|
895
|
+
* }
|
|
978
896
|
* })
|
|
979
897
|
*/
|
|
980
|
-
|
|
981
|
-
|
|
898
|
+
executeProxy(id, request, requestOptions) {
|
|
899
|
+
return core.HttpResponsePromise.fromPromise(this.__executeProxy(id, request, requestOptions));
|
|
900
|
+
}
|
|
901
|
+
__executeProxy(id, request, requestOptions) {
|
|
982
902
|
return __awaiter(this, void 0, void 0, function* () {
|
|
903
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
904
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
905
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
906
|
+
"Idempotency-Key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey,
|
|
907
|
+
"X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
|
|
908
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
983
909
|
const _response = yield core.fetcher({
|
|
984
|
-
url:
|
|
910
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, `api/connections/${core.url.encodePathParam(id)}/proxy`),
|
|
985
911
|
method: "POST",
|
|
986
|
-
headers:
|
|
987
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
988
|
-
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
989
|
-
? yield core.Supplier.get(this._options.version)
|
|
990
|
-
: undefined,
|
|
991
|
-
"X-Fern-Language": "JavaScript",
|
|
992
|
-
"X-Fern-SDK-Name": "polytomic",
|
|
993
|
-
"X-Fern-SDK-Version": "1.18.1",
|
|
994
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
995
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
996
|
-
},
|
|
912
|
+
headers: _headers,
|
|
997
913
|
contentType: "application/json",
|
|
914
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
915
|
+
requestType: "json",
|
|
998
916
|
body: request,
|
|
999
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
1000
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
917
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
918
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
1001
919
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
920
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
921
|
+
logging: this._options.logging,
|
|
1002
922
|
});
|
|
1003
923
|
if (_response.ok) {
|
|
1004
|
-
return
|
|
924
|
+
return {
|
|
925
|
+
data: _response.body,
|
|
926
|
+
rawResponse: _response.rawResponse,
|
|
927
|
+
};
|
|
1005
928
|
}
|
|
1006
929
|
if (_response.error.reason === "status-code") {
|
|
1007
930
|
switch (_response.error.statusCode) {
|
|
931
|
+
case 400:
|
|
932
|
+
throw new Polytomic.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1008
933
|
case 401:
|
|
1009
|
-
throw new Polytomic.UnauthorizedError(_response.error.body);
|
|
934
|
+
throw new Polytomic.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
1010
935
|
case 403:
|
|
1011
|
-
throw new Polytomic.ForbiddenError(_response.error.body);
|
|
936
|
+
throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
1012
937
|
case 404:
|
|
1013
|
-
throw new Polytomic.NotFoundError(_response.error.body);
|
|
1014
|
-
case
|
|
1015
|
-
throw new Polytomic.
|
|
938
|
+
throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
939
|
+
case 429:
|
|
940
|
+
throw new Polytomic.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
1016
941
|
case 500:
|
|
1017
|
-
throw new Polytomic.InternalServerError(_response.error.body);
|
|
942
|
+
throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
|
|
943
|
+
case 502:
|
|
944
|
+
throw new Polytomic.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
945
|
+
case 504:
|
|
946
|
+
throw new Polytomic.GatewayTimeoutError(_response.error.body, _response.rawResponse);
|
|
1018
947
|
default:
|
|
1019
948
|
throw new errors.PolytomicError({
|
|
1020
949
|
statusCode: _response.error.statusCode,
|
|
1021
950
|
body: _response.error.body,
|
|
951
|
+
rawResponse: _response.rawResponse,
|
|
1022
952
|
});
|
|
1023
953
|
}
|
|
1024
954
|
}
|
|
1025
|
-
|
|
1026
|
-
case "non-json":
|
|
1027
|
-
throw new errors.PolytomicError({
|
|
1028
|
-
statusCode: _response.error.statusCode,
|
|
1029
|
-
body: _response.error.rawBody,
|
|
1030
|
-
});
|
|
1031
|
-
case "timeout":
|
|
1032
|
-
throw new errors.PolytomicTimeoutError();
|
|
1033
|
-
case "unknown":
|
|
1034
|
-
throw new errors.PolytomicError({
|
|
1035
|
-
message: _response.error.errorMessage,
|
|
1036
|
-
});
|
|
1037
|
-
}
|
|
955
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/api/connections/{id}/proxy");
|
|
1038
956
|
});
|
|
1039
957
|
}
|
|
1040
958
|
/**
|
|
1041
|
-
*
|
|
959
|
+
* @beta This endpoint is in pre-release and may change.
|
|
960
|
+
*
|
|
961
|
+
* Returns the proxy contract for a connection.
|
|
962
|
+
*
|
|
963
|
+
* Use this endpoint before calling
|
|
964
|
+
* [`POST /api/connections/{id}/proxy`](../../../../../api-reference/connections/execute-proxy)
|
|
965
|
+
* when you need to build requests programmatically. The response shows:
|
|
966
|
+
*
|
|
967
|
+
* - the inherited base URL that all proxied requests are sent to
|
|
968
|
+
* - locked headers and query parameters that are attached automatically
|
|
969
|
+
* - blocked request and response headers
|
|
970
|
+
* - allowed HTTP methods and body shapes
|
|
971
|
+
* - timeout, rate-limit, and payload-size limits
|
|
1042
972
|
*
|
|
1043
|
-
*
|
|
1044
|
-
*
|
|
973
|
+
* Sensitive inherited header and query values are redacted in the response. The
|
|
974
|
+
* contract is still useful for discovering which keys are fixed by the
|
|
975
|
+
* connection, even though their raw values are not exposed.
|
|
1045
976
|
*
|
|
977
|
+
* @param {string} id - Unique identifier of the connection whose proxy contract should be returned.
|
|
978
|
+
* @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
979
|
+
*
|
|
980
|
+
* @throws {@link Polytomic.BadRequestError}
|
|
1046
981
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
1047
982
|
* @throws {@link Polytomic.ForbiddenError}
|
|
1048
983
|
* @throws {@link Polytomic.NotFoundError}
|
|
984
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
985
|
+
*
|
|
986
|
+
* @example
|
|
987
|
+
* await client.connections.getProxyInfo("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
988
|
+
*/
|
|
989
|
+
getProxyInfo(id, requestOptions) {
|
|
990
|
+
return core.HttpResponsePromise.fromPromise(this.__getProxyInfo(id, requestOptions));
|
|
991
|
+
}
|
|
992
|
+
__getProxyInfo(id, requestOptions) {
|
|
993
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
994
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
995
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
996
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
997
|
+
"X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
|
|
998
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
999
|
+
const _response = yield core.fetcher({
|
|
1000
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, `api/connections/${core.url.encodePathParam(id)}/proxy/info`),
|
|
1001
|
+
method: "GET",
|
|
1002
|
+
headers: _headers,
|
|
1003
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
1004
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
1005
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
1006
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1007
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
1008
|
+
logging: this._options.logging,
|
|
1009
|
+
});
|
|
1010
|
+
if (_response.ok) {
|
|
1011
|
+
return {
|
|
1012
|
+
data: _response.body,
|
|
1013
|
+
rawResponse: _response.rawResponse,
|
|
1014
|
+
};
|
|
1015
|
+
}
|
|
1016
|
+
if (_response.error.reason === "status-code") {
|
|
1017
|
+
switch (_response.error.statusCode) {
|
|
1018
|
+
case 400:
|
|
1019
|
+
throw new Polytomic.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1020
|
+
case 401:
|
|
1021
|
+
throw new Polytomic.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
1022
|
+
case 403:
|
|
1023
|
+
throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
1024
|
+
case 404:
|
|
1025
|
+
throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1026
|
+
case 500:
|
|
1027
|
+
throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1028
|
+
default:
|
|
1029
|
+
throw new errors.PolytomicError({
|
|
1030
|
+
statusCode: _response.error.statusCode,
|
|
1031
|
+
body: _response.error.body,
|
|
1032
|
+
rawResponse: _response.rawResponse,
|
|
1033
|
+
});
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/connections/{id}/proxy/info");
|
|
1037
|
+
});
|
|
1038
|
+
}
|
|
1039
|
+
/**
|
|
1040
|
+
* @beta This endpoint is in pre-release and may change.
|
|
1041
|
+
*
|
|
1042
|
+
* Lists shared copies of a connection that the caller's organization owns.
|
|
1043
|
+
*
|
|
1044
|
+
* The returned connections are the child copies, not the parent connection
|
|
1045
|
+
* itself. This is useful when a partner workflow needs to confirm which
|
|
1046
|
+
* downstream organizations have already received a shared copy.
|
|
1047
|
+
*
|
|
1048
|
+
* Creating a new shared copy is a separate operation. Use
|
|
1049
|
+
* [`POST /api/organizations/{org_id}/connections/{connection_id}/share`](../../../../api-reference/connections/create-shared-connection)
|
|
1050
|
+
* for the v5 partner-scoped flow.
|
|
1051
|
+
*
|
|
1052
|
+
* @param {string} id - Unique identifier of the parent connection whose shared copies should be listed.
|
|
1053
|
+
* @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1054
|
+
*
|
|
1055
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
1056
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
1049
1057
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
1050
1058
|
* @throws {@link Polytomic.InternalServerError}
|
|
1051
1059
|
*
|
|
1052
1060
|
* @example
|
|
1053
1061
|
* await client.connections.listSharedConnections("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
1054
1062
|
*/
|
|
1055
|
-
listSharedConnections(
|
|
1056
|
-
|
|
1063
|
+
listSharedConnections(id, requestOptions) {
|
|
1064
|
+
return core.HttpResponsePromise.fromPromise(this.__listSharedConnections(id, requestOptions));
|
|
1065
|
+
}
|
|
1066
|
+
__listSharedConnections(id, requestOptions) {
|
|
1057
1067
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1068
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
1069
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
1070
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
1071
|
+
"X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
|
|
1072
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
1058
1073
|
const _response = yield core.fetcher({
|
|
1059
|
-
url:
|
|
1074
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, `api/connections/${core.url.encodePathParam(id)}/shared`),
|
|
1060
1075
|
method: "GET",
|
|
1061
|
-
headers:
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
: undefined,
|
|
1066
|
-
"X-Fern-Language": "JavaScript",
|
|
1067
|
-
"X-Fern-SDK-Name": "polytomic",
|
|
1068
|
-
"X-Fern-SDK-Version": "1.18.1",
|
|
1069
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
1070
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
1071
|
-
},
|
|
1072
|
-
contentType: "application/json",
|
|
1073
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
1074
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
1076
|
+
headers: _headers,
|
|
1077
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
1078
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
1079
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
1075
1080
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1081
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
1082
|
+
logging: this._options.logging,
|
|
1076
1083
|
});
|
|
1077
1084
|
if (_response.ok) {
|
|
1078
|
-
return
|
|
1085
|
+
return {
|
|
1086
|
+
data: _response.body,
|
|
1087
|
+
rawResponse: _response.rawResponse,
|
|
1088
|
+
};
|
|
1079
1089
|
}
|
|
1080
1090
|
if (_response.error.reason === "status-code") {
|
|
1081
1091
|
switch (_response.error.statusCode) {
|
|
1082
|
-
case 401:
|
|
1083
|
-
throw new Polytomic.UnauthorizedError(_response.error.body);
|
|
1084
1092
|
case 403:
|
|
1085
|
-
throw new Polytomic.ForbiddenError(_response.error.body);
|
|
1093
|
+
throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
1086
1094
|
case 404:
|
|
1087
|
-
throw new Polytomic.NotFoundError(_response.error.body);
|
|
1095
|
+
throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1088
1096
|
case 422:
|
|
1089
|
-
throw new Polytomic.UnprocessableEntityError(_response.error.body);
|
|
1097
|
+
throw new Polytomic.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
1090
1098
|
case 500:
|
|
1091
|
-
throw new Polytomic.InternalServerError(_response.error.body);
|
|
1099
|
+
throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1092
1100
|
default:
|
|
1093
1101
|
throw new errors.PolytomicError({
|
|
1094
1102
|
statusCode: _response.error.statusCode,
|
|
1095
1103
|
body: _response.error.body,
|
|
1104
|
+
rawResponse: _response.rawResponse,
|
|
1096
1105
|
});
|
|
1097
1106
|
}
|
|
1098
1107
|
}
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1108
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/connections/{id}/shared");
|
|
1109
|
+
});
|
|
1110
|
+
}
|
|
1111
|
+
/**
|
|
1112
|
+
* @beta This endpoint is in pre-release and may change.
|
|
1113
|
+
*
|
|
1114
|
+
* Lists shared copies of a connection owned by a specific organization in the partner account.
|
|
1115
|
+
*
|
|
1116
|
+
* The `org_id` must match the organization that owns the parent connection. If it
|
|
1117
|
+
* does not, the endpoint returns `404` rather than exposing information about the
|
|
1118
|
+
* parent connection.
|
|
1119
|
+
*
|
|
1120
|
+
* This endpoint is useful in partner workflows where the parent connection is in
|
|
1121
|
+
* the partner owner organization and the caller needs to audit which child
|
|
1122
|
+
* organizations already have a shared copy.
|
|
1123
|
+
*
|
|
1124
|
+
* @param {string} org_id - Unique identifier of the organization that owns the parent connection.
|
|
1125
|
+
* @param {string} connection_id - Unique identifier of the parent connection whose shared copies should be listed.
|
|
1126
|
+
* @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1127
|
+
*
|
|
1128
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
1129
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
1130
|
+
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
1131
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
1132
|
+
*
|
|
1133
|
+
* @example
|
|
1134
|
+
* await client.connections.listSharedConnectionsForPartner("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
1135
|
+
*/
|
|
1136
|
+
listSharedConnectionsForPartner(org_id, connection_id, requestOptions) {
|
|
1137
|
+
return core.HttpResponsePromise.fromPromise(this.__listSharedConnectionsForPartner(org_id, connection_id, requestOptions));
|
|
1138
|
+
}
|
|
1139
|
+
__listSharedConnectionsForPartner(org_id, connection_id, requestOptions) {
|
|
1140
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1141
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
1142
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
1143
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
1144
|
+
"X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
|
|
1145
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
1146
|
+
const _response = yield core.fetcher({
|
|
1147
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, `api/organizations/${core.url.encodePathParam(org_id)}/connections/${core.url.encodePathParam(connection_id)}/shared`),
|
|
1148
|
+
method: "GET",
|
|
1149
|
+
headers: _headers,
|
|
1150
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
1151
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
1152
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
1153
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1154
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
1155
|
+
logging: this._options.logging,
|
|
1156
|
+
});
|
|
1157
|
+
if (_response.ok) {
|
|
1158
|
+
return {
|
|
1159
|
+
data: _response.body,
|
|
1160
|
+
rawResponse: _response.rawResponse,
|
|
1161
|
+
};
|
|
1162
|
+
}
|
|
1163
|
+
if (_response.error.reason === "status-code") {
|
|
1164
|
+
switch (_response.error.statusCode) {
|
|
1165
|
+
case 403:
|
|
1166
|
+
throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
1167
|
+
case 404:
|
|
1168
|
+
throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1169
|
+
case 422:
|
|
1170
|
+
throw new Polytomic.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
1171
|
+
case 500:
|
|
1172
|
+
throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1173
|
+
default:
|
|
1174
|
+
throw new errors.PolytomicError({
|
|
1175
|
+
statusCode: _response.error.statusCode,
|
|
1176
|
+
body: _response.error.body,
|
|
1177
|
+
rawResponse: _response.rawResponse,
|
|
1178
|
+
});
|
|
1179
|
+
}
|
|
1111
1180
|
}
|
|
1181
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/organizations/{org_id}/connections/{connection_id}/shared");
|
|
1112
1182
|
});
|
|
1113
1183
|
}
|
|
1114
|
-
|
|
1184
|
+
/**
|
|
1185
|
+
* @beta This endpoint is in pre-release and may change.
|
|
1186
|
+
*
|
|
1187
|
+
* Shares a connection with another organization in the caller's partner account.
|
|
1188
|
+
*
|
|
1189
|
+
* @param {string} org_id - Unique identifier of the organization that owns the parent connection.
|
|
1190
|
+
* @param {string} connection_id - Unique identifier of the parent connection to share.
|
|
1191
|
+
* @param {Polytomic.PartnerCreateSharedConnectionRequestSchema} request
|
|
1192
|
+
* @param {ConnectionsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
1193
|
+
*
|
|
1194
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
1195
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
1196
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
1197
|
+
*
|
|
1198
|
+
* @example
|
|
1199
|
+
* await client.connections.createSharedConnection("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
1200
|
+
* child_organization_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
1201
|
+
* })
|
|
1202
|
+
*/
|
|
1203
|
+
createSharedConnection(org_id, connection_id, request, requestOptions) {
|
|
1204
|
+
return core.HttpResponsePromise.fromPromise(this.__createSharedConnection(org_id, connection_id, request, requestOptions));
|
|
1205
|
+
}
|
|
1206
|
+
__createSharedConnection(org_id, connection_id, request, requestOptions) {
|
|
1115
1207
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1116
|
-
|
|
1208
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
1209
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
1210
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
1211
|
+
"Idempotency-Key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey,
|
|
1212
|
+
"X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
|
|
1213
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
1214
|
+
const _response = yield core.fetcher({
|
|
1215
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, `api/organizations/${core.url.encodePathParam(org_id)}/connections/${core.url.encodePathParam(connection_id)}/shared`),
|
|
1216
|
+
method: "POST",
|
|
1217
|
+
headers: _headers,
|
|
1218
|
+
contentType: "application/json",
|
|
1219
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
1220
|
+
requestType: "json",
|
|
1221
|
+
body: request,
|
|
1222
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
1223
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
1224
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1225
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
1226
|
+
logging: this._options.logging,
|
|
1227
|
+
});
|
|
1228
|
+
if (_response.ok) {
|
|
1229
|
+
return {
|
|
1230
|
+
data: _response.body,
|
|
1231
|
+
rawResponse: _response.rawResponse,
|
|
1232
|
+
};
|
|
1233
|
+
}
|
|
1234
|
+
if (_response.error.reason === "status-code") {
|
|
1235
|
+
switch (_response.error.statusCode) {
|
|
1236
|
+
case 403:
|
|
1237
|
+
throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
1238
|
+
case 404:
|
|
1239
|
+
throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1240
|
+
case 500:
|
|
1241
|
+
throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1242
|
+
default:
|
|
1243
|
+
throw new errors.PolytomicError({
|
|
1244
|
+
statusCode: _response.error.statusCode,
|
|
1245
|
+
body: _response.error.body,
|
|
1246
|
+
rawResponse: _response.rawResponse,
|
|
1247
|
+
});
|
|
1248
|
+
}
|
|
1249
|
+
}
|
|
1250
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/api/organizations/{org_id}/connections/{connection_id}/shared");
|
|
1117
1251
|
});
|
|
1118
1252
|
}
|
|
1119
1253
|
}
|
|
1120
|
-
exports.
|
|
1254
|
+
exports.ConnectionsClient = ConnectionsClient;
|