polytomic 25.9.1 → 25.9.3
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.js +2 -2
- package/Client.d.ts +9 -0
- package/Client.js +37 -22
- package/api/errors/ServiceUnavailableError.d.ts +6 -0
- package/api/errors/ServiceUnavailableError.js +54 -0
- package/api/errors/index.d.ts +1 -0
- package/api/errors/index.js +1 -0
- package/api/resources/bulkSync/client/Client.d.ts +7 -4
- package/api/resources/bulkSync/client/Client.js +16 -11
- package/api/resources/bulkSync/client/requests/{BulkSyncRemoveRequest.d.ts → BulkSyncDeleteRequest.d.ts} +1 -1
- package/api/resources/bulkSync/client/requests/StartBulkSyncRequest.d.ts +1 -1
- package/api/resources/bulkSync/client/requests/index.d.ts +1 -1
- package/api/resources/bulkSync/resources/errorHandling/client/Client.d.ts +47 -0
- package/api/resources/bulkSync/resources/errorHandling/client/Client.js +185 -0
- package/api/resources/bulkSync/resources/errorHandling/client/index.d.ts +1 -0
- package/api/resources/bulkSync/resources/errorHandling/client/index.js +17 -0
- package/api/resources/bulkSync/resources/errorHandling/client/requests/UpdateBulkSyncErrorHandlingRequest.d.ts +8 -0
- package/api/resources/bulkSync/resources/errorHandling/client/requests/index.d.ts +1 -0
- package/api/resources/bulkSync/resources/errorHandling/client/requests/index.js +2 -0
- package/api/resources/bulkSync/resources/errorHandling/exports.d.ts +2 -0
- package/api/resources/bulkSync/resources/errorHandling/exports.js +21 -0
- package/api/resources/bulkSync/resources/errorHandling/index.d.ts +1 -0
- package/api/resources/bulkSync/resources/errorHandling/index.js +17 -0
- package/api/resources/bulkSync/resources/executions/client/Client.d.ts +23 -6
- package/api/resources/bulkSync/resources/executions/client/Client.js +79 -6
- package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsGetIngestConsoleLogsRequest.d.ts +16 -0
- package/api/resources/bulkSync/resources/executions/client/requests/index.d.ts +1 -0
- package/api/resources/bulkSync/resources/index.d.ts +2 -0
- package/api/resources/bulkSync/resources/index.js +3 -1
- package/api/resources/connections/client/Client.d.ts +51 -150
- package/api/resources/connections/client/Client.js +104 -360
- package/api/resources/connections/client/requests/ConnectCardRequest.d.ts +4 -0
- package/api/resources/connections/client/requests/{ConnectionsRemoveRequest.d.ts → ConnectionsDeleteRequest.d.ts} +1 -1
- package/api/resources/connections/client/requests/index.d.ts +1 -3
- package/api/resources/connections/exports.d.ts +1 -0
- package/api/resources/connections/exports.js +1 -0
- package/api/resources/connections/index.d.ts +1 -0
- package/api/resources/connections/index.js +1 -0
- package/api/resources/connections/resources/index.d.ts +4 -0
- package/api/resources/connections/resources/index.js +43 -0
- package/api/resources/connections/resources/proxy/client/Client.d.ts +153 -0
- package/api/resources/connections/resources/proxy/client/Client.js +399 -0
- package/api/resources/connections/resources/proxy/client/index.d.ts +1 -0
- package/api/resources/connections/resources/proxy/client/index.js +17 -0
- package/api/resources/connections/{client → resources/proxy/client}/requests/ExecuteConnectionProxyRequest.d.ts +3 -1
- package/api/resources/connections/resources/proxy/client/requests/UpdateConnectionProxySettingsRequest.d.ts +10 -0
- package/api/resources/connections/resources/proxy/client/requests/index.d.ts +2 -0
- package/api/resources/connections/resources/proxy/client/requests/index.js +2 -0
- package/api/resources/connections/resources/proxy/exports.d.ts +2 -0
- package/api/resources/connections/resources/proxy/exports.js +21 -0
- package/api/resources/connections/resources/proxy/index.d.ts +1 -0
- package/api/resources/connections/resources/proxy/index.js +17 -0
- package/api/resources/connections/resources/sharedConnections/client/Client.d.ts +83 -0
- package/api/resources/connections/resources/sharedConnections/client/Client.js +267 -0
- package/api/resources/connections/resources/sharedConnections/client/index.d.ts +1 -0
- package/api/resources/connections/resources/sharedConnections/client/index.js +17 -0
- package/api/resources/connections/resources/sharedConnections/client/requests/index.d.ts +1 -0
- package/api/resources/connections/resources/sharedConnections/client/requests/index.js +2 -0
- package/api/resources/connections/resources/sharedConnections/exports.d.ts +2 -0
- package/api/resources/connections/resources/sharedConnections/exports.js +21 -0
- package/api/resources/connections/resources/sharedConnections/index.d.ts +1 -0
- package/api/resources/connections/resources/sharedConnections/index.js +17 -0
- package/api/resources/entities/client/Client.d.ts +11 -2
- package/api/resources/entities/client/Client.js +11 -2
- package/api/resources/harbors/client/Client.d.ts +786 -0
- package/api/resources/harbors/client/Client.js +2358 -0
- package/api/resources/harbors/client/index.d.ts +1 -0
- package/api/resources/harbors/client/index.js +17 -0
- package/api/resources/harbors/client/requests/CreateHarborContextDraftRequest.d.ts +17 -0
- package/api/resources/harbors/client/requests/CreateHarborContextRequest.d.ts +15 -0
- package/api/resources/harbors/client/requests/CreateHarborRequest.d.ts +19 -0
- package/api/resources/harbors/client/requests/HarborsCloseSessionRequest.d.ts +12 -0
- package/api/resources/harbors/client/requests/HarborsDeleteContextDraftRequest.d.ts +8 -0
- package/api/resources/harbors/client/requests/HarborsDeleteContextDraftRequest.js +3 -0
- package/api/resources/harbors/client/requests/HarborsDeleteContextRequest.d.ts +8 -0
- package/api/resources/harbors/client/requests/HarborsDeleteContextRequest.js +3 -0
- package/api/resources/harbors/client/requests/HarborsGetAuthorizedSchemaRequest.d.ts +8 -0
- package/api/resources/harbors/client/requests/HarborsGetAuthorizedSchemaRequest.js +3 -0
- package/api/resources/harbors/client/requests/HarborsGetContextDraftRequest.d.ts +8 -0
- package/api/resources/harbors/client/requests/HarborsGetContextDraftRequest.js +3 -0
- package/api/resources/harbors/client/requests/HarborsGetContextRequest.d.ts +8 -0
- package/api/resources/harbors/client/requests/HarborsGetContextRequest.js +3 -0
- package/api/resources/harbors/client/requests/HarborsGetContextVersionRequest.d.ts +8 -0
- package/api/resources/harbors/client/requests/HarborsGetContextVersionRequest.js +3 -0
- package/api/resources/harbors/client/requests/HarborsListAuthorizedConnectionsRequest.d.ts +13 -0
- package/api/resources/harbors/client/requests/HarborsListAuthorizedConnectionsRequest.js +3 -0
- package/api/resources/harbors/client/requests/HarborsListAuthorizedSchemasRequest.d.ts +13 -0
- package/api/resources/harbors/client/requests/HarborsListAuthorizedSchemasRequest.js +3 -0
- package/api/resources/harbors/client/requests/HarborsListContextDraftsRequest.d.ts +13 -0
- package/api/resources/harbors/client/requests/HarborsListContextDraftsRequest.js +3 -0
- package/api/resources/harbors/client/requests/HarborsListContextVersionsRequest.d.ts +15 -0
- package/api/resources/harbors/client/requests/HarborsListContextVersionsRequest.js +3 -0
- package/api/resources/harbors/client/requests/HarborsListContextsRequest.d.ts +15 -0
- package/api/resources/harbors/client/requests/HarborsListContextsRequest.js +3 -0
- package/api/resources/harbors/client/requests/HarborsListKeysRequest.d.ts +13 -0
- package/api/resources/harbors/client/requests/HarborsListKeysRequest.js +3 -0
- package/api/resources/harbors/client/requests/HarborsListRequest.d.ts +13 -0
- package/api/resources/harbors/client/requests/HarborsListRequest.js +3 -0
- package/api/resources/harbors/client/requests/HarborsListUsersRequest.d.ts +13 -0
- package/api/resources/harbors/client/requests/HarborsListUsersRequest.js +3 -0
- package/api/resources/harbors/client/requests/HarborsPromoteContextDraftRequest.d.ts +8 -0
- package/api/resources/harbors/client/requests/HarborsPromoteContextDraftRequest.js +3 -0
- package/api/resources/harbors/client/requests/InviteHarborUserRequest.d.ts +10 -0
- package/api/resources/harbors/client/requests/InviteHarborUserRequest.js +3 -0
- package/api/resources/harbors/client/requests/RegisterHarborSessionRequest.d.ts +17 -0
- package/api/resources/harbors/client/requests/RegisterHarborSessionRequest.js +3 -0
- package/api/resources/harbors/client/requests/ResolveHarborSourceMappingsRequest.d.ts +9 -0
- package/api/resources/harbors/client/requests/ResolveHarborSourceMappingsRequest.js +3 -0
- package/api/resources/harbors/client/requests/SaveHarborContextDraftRequest.d.ts +19 -0
- package/api/resources/harbors/client/requests/SaveHarborContextDraftRequest.js +3 -0
- package/api/resources/harbors/client/requests/SaveHarborContextRequest.d.ts +19 -0
- package/api/resources/harbors/client/requests/SaveHarborContextRequest.js +3 -0
- package/api/resources/harbors/client/requests/UpdateHarborRequest.d.ts +12 -0
- package/api/resources/harbors/client/requests/UpdateHarborRequest.js +3 -0
- package/api/resources/harbors/client/requests/index.d.ts +25 -0
- package/api/resources/harbors/client/requests/index.js +2 -0
- package/api/resources/harbors/exports.d.ts +2 -0
- package/api/resources/harbors/exports.js +21 -0
- package/api/resources/harbors/index.d.ts +1 -0
- package/api/resources/harbors/index.js +17 -0
- package/api/resources/index.d.ts +6 -0
- package/api/resources/index.js +7 -1
- package/api/resources/jobs/client/Client.d.ts +1 -1
- package/api/resources/jobs/client/Client.js +1 -1
- package/api/resources/modelSync/client/Client.d.ts +13 -10
- package/api/resources/modelSync/client/Client.js +33 -15
- package/api/resources/modelSync/client/requests/{CreateSyncRequest.d.ts → CreateModelSyncV5Request.d.ts} +8 -6
- package/api/resources/modelSync/client/requests/CreateModelSyncV5Request.js +3 -0
- package/api/resources/modelSync/client/requests/{UpdateSyncRequest.d.ts → UpdateModelSyncV5Request.d.ts} +8 -6
- package/api/resources/modelSync/client/requests/UpdateModelSyncV5Request.js +3 -0
- package/api/resources/modelSync/client/requests/index.d.ts +2 -2
- package/api/resources/modelSync/resources/errorHandling/client/Client.d.ts +47 -0
- package/api/resources/modelSync/resources/errorHandling/client/Client.js +179 -0
- package/api/resources/modelSync/resources/errorHandling/client/index.d.ts +1 -0
- package/api/resources/modelSync/resources/errorHandling/client/index.js +17 -0
- package/api/resources/modelSync/resources/errorHandling/client/requests/UpdateSyncErrorHandlingRequest.d.ts +14 -0
- package/api/resources/modelSync/resources/errorHandling/client/requests/UpdateSyncErrorHandlingRequest.js +3 -0
- package/api/resources/modelSync/resources/errorHandling/client/requests/index.d.ts +1 -0
- package/api/resources/modelSync/resources/errorHandling/client/requests/index.js +2 -0
- package/api/resources/modelSync/resources/errorHandling/exports.d.ts +2 -0
- package/api/resources/modelSync/resources/errorHandling/exports.js +21 -0
- package/api/resources/modelSync/resources/errorHandling/index.d.ts +1 -0
- package/api/resources/modelSync/resources/errorHandling/index.js +17 -0
- package/api/resources/modelSync/resources/executions/client/Client.d.ts +21 -6
- package/api/resources/modelSync/resources/executions/client/Client.js +60 -6
- package/api/resources/modelSync/resources/index.d.ts +2 -0
- package/api/resources/modelSync/resources/index.js +3 -1
- package/api/resources/modelSync/resources/targets/client/Client.d.ts +40 -5
- package/api/resources/modelSync/resources/targets/client/Client.js +59 -12
- package/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetFieldsRequest.d.ts +5 -3
- package/api/resources/modelSync/resources/targets/client/requests/TargetsListRequest.d.ts +10 -0
- package/api/resources/modelSync/resources/targets/client/requests/TargetsListRequest.js +3 -0
- package/api/resources/modelSync/resources/targets/client/requests/index.d.ts +1 -0
- package/api/resources/models/client/Client.d.ts +4 -4
- package/api/resources/models/client/Client.js +5 -5
- package/api/resources/models/client/requests/{ModelsRemoveRequest.d.ts → ModelsDeleteRequest.d.ts} +1 -1
- package/api/resources/models/client/requests/ModelsDeleteRequest.js +3 -0
- package/api/resources/models/client/requests/index.d.ts +1 -1
- package/api/resources/organization/client/Client.d.ts +36 -3
- package/api/resources/organization/client/Client.js +133 -4
- package/api/resources/organization/client/requests/UpdateRecordLoggingSettingsRequest.d.ts +12 -0
- package/api/resources/organization/client/requests/UpdateRecordLoggingSettingsRequest.js +3 -0
- package/api/resources/organization/client/requests/index.d.ts +1 -0
- package/api/resources/permissions/resources/policies/client/Client.d.ts +3 -3
- package/api/resources/permissions/resources/policies/client/Client.js +4 -4
- package/api/resources/permissions/resources/roles/client/Client.d.ts +3 -3
- package/api/resources/permissions/resources/roles/client/Client.js +4 -4
- package/api/resources/recordViewLinks/client/Client.d.ts +59 -0
- package/api/resources/recordViewLinks/client/Client.js +210 -0
- package/api/resources/recordViewLinks/client/index.d.ts +1 -0
- package/api/resources/recordViewLinks/client/index.js +17 -0
- package/api/resources/recordViewLinks/client/requests/CreateRecordViewLinkRequest.d.ts +25 -0
- package/api/resources/recordViewLinks/client/requests/CreateRecordViewLinkRequest.js +3 -0
- package/api/resources/recordViewLinks/client/requests/RecordViewLinksGetCapabilitiesRequest.d.ts +15 -0
- package/api/resources/recordViewLinks/client/requests/RecordViewLinksGetCapabilitiesRequest.js +3 -0
- package/api/resources/recordViewLinks/client/requests/index.d.ts +2 -0
- package/api/resources/recordViewLinks/client/requests/index.js +2 -0
- package/api/resources/recordViewLinks/exports.d.ts +2 -0
- package/api/resources/recordViewLinks/exports.js +21 -0
- package/api/resources/recordViewLinks/index.d.ts +1 -0
- package/api/resources/recordViewLinks/index.js +17 -0
- package/api/resources/schemas/client/Client.d.ts +18 -0
- package/api/resources/schemas/client/Client.js +66 -0
- package/api/resources/schemas/client/requests/PatchSchemaFieldRequest.d.ts +16 -0
- package/api/resources/schemas/client/requests/PatchSchemaFieldRequest.js +3 -0
- package/api/resources/schemas/client/requests/index.d.ts +1 -0
- package/api/resources/temporaryCredentials/client/Client.d.ts +79 -0
- package/api/resources/temporaryCredentials/client/Client.js +177 -0
- package/api/resources/temporaryCredentials/client/index.d.ts +1 -0
- package/api/resources/temporaryCredentials/client/index.js +17 -0
- package/api/resources/temporaryCredentials/client/requests/CreateTemporaryCredentialRequest.d.ts +16 -0
- package/api/resources/temporaryCredentials/client/requests/CreateTemporaryCredentialRequest.js +3 -0
- package/api/resources/temporaryCredentials/client/requests/index.d.ts +1 -0
- package/api/resources/temporaryCredentials/client/requests/index.js +2 -0
- package/api/resources/temporaryCredentials/exports.d.ts +2 -0
- package/api/resources/temporaryCredentials/exports.js +21 -0
- package/api/resources/temporaryCredentials/index.d.ts +1 -0
- package/api/resources/temporaryCredentials/index.js +17 -0
- package/api/resources/users/client/Client.d.ts +8 -8
- package/api/resources/users/client/Client.js +12 -9
- package/api/resources/webhooks/client/Client.d.ts +3 -3
- package/api/resources/webhooks/client/Client.js +4 -4
- package/api/types/BackendConnectionCapabilities.d.ts +1 -0
- package/api/types/BulkSyncErrorHandling.d.ts +4 -0
- package/api/types/BulkSyncErrorHandling.js +3 -0
- package/api/types/BulkSyncErrorHandlingEnvelope.d.ts +4 -0
- package/api/types/BulkSyncErrorHandlingEnvelope.js +3 -0
- package/api/types/BulkSyncExecution.d.ts +2 -0
- package/api/types/BulkSyncSchemaExecution.d.ts +2 -0
- package/api/types/BulkSyncSourceCapabilities.d.ts +2 -0
- package/api/types/CloseHarborSessionEnvelope.d.ts +9 -0
- package/api/types/CloseHarborSessionEnvelope.js +3 -0
- package/api/types/ConnectCardResponse.d.ts +2 -2
- package/api/types/ConnectSessionResponse.d.ts +22 -0
- package/api/types/ConnectSessionResponse.js +3 -0
- package/api/types/ConnectSessionResponseEnvelope.d.ts +4 -0
- package/api/types/ConnectSessionResponseEnvelope.js +3 -0
- package/api/types/ConnectionParameterValue.d.ts +1 -0
- package/api/types/ConnectionProxyResponse.d.ts +7 -1
- package/api/types/ConnectionProxySettingsEnvelope.d.ts +4 -0
- package/api/types/ConnectionProxySettingsEnvelope.js +3 -0
- package/api/types/ConnectionProxySettingsResponse.d.ts +12 -0
- package/api/types/ConnectionProxySettingsResponse.js +3 -0
- package/api/types/ConnectionType.d.ts +1 -0
- package/api/types/ConnectionTypeSchema.d.ts +1 -0
- package/api/types/ConnectionUsageCategoryStats.d.ts +8 -0
- package/api/types/ConnectionUsageCategoryStats.js +3 -0
- package/api/types/ConnectionUsageResponse.d.ts +11 -0
- package/api/types/ConnectionUsageResponse.js +3 -0
- package/api/types/ConnectionUsageSyncStats.d.ts +15 -0
- package/api/types/ConnectionUsageSyncStats.js +3 -0
- package/api/types/CreateHarborEnvelope.d.ts +4 -0
- package/api/types/CreateHarborEnvelope.js +3 -0
- package/api/types/CreateHarborResponse.d.ts +5 -0
- package/api/types/CreateHarborResponse.js +3 -0
- package/api/types/CreateRecordViewLinkEnvelope.d.ts +4 -0
- package/api/types/CreateRecordViewLinkEnvelope.js +3 -0
- package/api/types/CreateRecordViewLinkResponse.d.ts +10 -0
- package/api/types/CreateRecordViewLinkResponse.js +3 -0
- package/api/types/CurrentOrgListUsersEnvelope.d.ts +4 -0
- package/api/types/CurrentOrgListUsersEnvelope.js +3 -0
- package/api/types/CurrentOrgUserEnvelope.d.ts +4 -0
- package/api/types/CurrentOrgUserEnvelope.js +3 -0
- package/api/types/CurrentOrgUserResponse.d.ts +16 -0
- package/api/types/CurrentOrgUserResponse.js +3 -0
- package/api/types/DeletedHarborContextDraftEnvelope.d.ts +9 -0
- package/api/types/DeletedHarborContextDraftEnvelope.js +3 -0
- package/api/types/DeletedHarborContextEnvelope.d.ts +9 -0
- package/api/types/DeletedHarborContextEnvelope.js +3 -0
- package/api/types/DeletedHarborEnvelope.d.ts +4 -0
- package/api/types/DeletedHarborEnvelope.js +3 -0
- package/api/types/DeletedHarborResponse.d.ts +4 -0
- package/api/types/DeletedHarborResponse.js +3 -0
- package/api/types/EntityResponse.d.ts +2 -2
- package/api/types/EventingBulkSyncCompletedEvent.d.ts +2 -0
- package/api/types/EventingBulkSyncCompletedWithErrorEvent.d.ts +2 -0
- package/api/types/EventingBulkSyncFailedEvent.d.ts +2 -0
- package/api/types/EventingBulkSyncSchedule.d.ts +4 -0
- package/api/types/EventingBulkSyncSchedule.js +3 -0
- package/api/types/EventingSyncCompletedEvent.d.ts +3 -0
- package/api/types/EventingSyncSchedule.d.ts +3 -0
- package/api/types/EventingSyncSchedule.js +3 -0
- package/api/types/Filter.d.ts +3 -2
- package/api/types/GetConnectionUsageEnvelope.d.ts +4 -0
- package/api/types/GetConnectionUsageEnvelope.js +3 -0
- package/api/types/GetExecutionResponseSchema.d.ts +2 -0
- package/api/types/GetIdentityResponseSchema.d.ts +2 -0
- package/api/types/GetRecordViewCapabilitiesEnvelope.d.ts +4 -0
- package/api/types/GetRecordViewCapabilitiesEnvelope.js +3 -0
- package/api/types/HarborApiKeyCreatedResponse.d.ts +10 -0
- package/api/types/HarborApiKeyCreatedResponse.js +3 -0
- package/api/types/HarborConnectionListEnvelope.d.ts +5 -0
- package/api/types/HarborConnectionListEnvelope.js +3 -0
- package/api/types/HarborConnectionResponse.d.ts +6 -0
- package/api/types/HarborConnectionResponse.js +3 -0
- package/api/types/HarborConnectionSchemaEnvelope.d.ts +4 -0
- package/api/types/HarborConnectionSchemaEnvelope.js +3 -0
- package/api/types/HarborContextDraftEnvelope.d.ts +4 -0
- package/api/types/HarborContextDraftEnvelope.js +3 -0
- package/api/types/HarborContextDraftListEnvelope.d.ts +5 -0
- package/api/types/HarborContextDraftListEnvelope.js +3 -0
- package/api/types/HarborContextDraftMetadataResponse.d.ts +26 -0
- package/api/types/HarborContextDraftMetadataResponse.js +3 -0
- package/api/types/HarborContextDraftResponse.d.ts +28 -0
- package/api/types/HarborContextDraftResponse.js +3 -0
- package/api/types/HarborContextEnvelope.d.ts +4 -0
- package/api/types/HarborContextEnvelope.js +3 -0
- package/api/types/HarborContextListEnvelope.d.ts +5 -0
- package/api/types/HarborContextListEnvelope.js +3 -0
- package/api/types/HarborContextMetadataResponse.d.ts +16 -0
- package/api/types/HarborContextMetadataResponse.js +3 -0
- package/api/types/HarborContextResponse.d.ts +18 -0
- package/api/types/HarborContextResponse.js +3 -0
- package/api/types/HarborContextVersionEnvelope.d.ts +4 -0
- package/api/types/HarborContextVersionEnvelope.js +3 -0
- package/api/types/HarborContextVersionListEnvelope.d.ts +5 -0
- package/api/types/HarborContextVersionListEnvelope.js +3 -0
- package/api/types/HarborContextVersionMetadataResponse.d.ts +18 -0
- package/api/types/HarborContextVersionMetadataResponse.js +3 -0
- package/api/types/HarborContextVersionResponse.d.ts +20 -0
- package/api/types/HarborContextVersionResponse.js +3 -0
- package/api/types/HarborDatasetStatusResponse.d.ts +8 -0
- package/api/types/HarborDatasetStatusResponse.js +3 -0
- package/api/types/HarborEnvelope.d.ts +4 -0
- package/api/types/HarborEnvelope.js +3 -0
- package/api/types/HarborKeyEnvelope.d.ts +4 -0
- package/api/types/HarborKeyEnvelope.js +3 -0
- package/api/types/HarborKeyListEnvelope.d.ts +5 -0
- package/api/types/HarborKeyListEnvelope.js +3 -0
- package/api/types/HarborKeyResponse.d.ts +16 -0
- package/api/types/HarborKeyResponse.js +3 -0
- package/api/types/HarborListEnvelope.d.ts +5 -0
- package/api/types/HarborListEnvelope.js +3 -0
- package/api/types/HarborPipelineStatusResponse.d.ts +21 -0
- package/api/types/HarborPipelineStatusResponse.js +12 -0
- package/api/types/HarborResponse.d.ts +20 -0
- package/api/types/HarborResponse.js +3 -0
- package/api/types/HarborSchemaListEnvelope.d.ts +6 -0
- package/api/types/HarborSchemaListEnvelope.js +3 -0
- package/api/types/HarborSchemaResponse.d.ts +4 -0
- package/api/types/HarborSchemaResponse.js +3 -0
- package/api/types/HarborSourceMappingResponse.d.ts +8 -0
- package/api/types/HarborSourceMappingResponse.js +3 -0
- package/api/types/HarborSourceReference.d.ts +8 -0
- package/api/types/HarborSourceReference.js +3 -0
- package/api/types/HarborStatusEnvelope.d.ts +4 -0
- package/api/types/HarborStatusEnvelope.js +3 -0
- package/api/types/HarborStatusResponse.d.ts +7 -0
- package/api/types/HarborStatusResponse.js +3 -0
- package/api/types/HarborStatusScheduleResponse.d.ts +28 -0
- package/api/types/HarborStatusScheduleResponse.js +3 -0
- package/api/types/HarborUserEnvelope.d.ts +4 -0
- package/api/types/HarborUserEnvelope.js +3 -0
- package/api/types/HarborUserListEnvelope.d.ts +5 -0
- package/api/types/HarborUserListEnvelope.js +3 -0
- package/api/types/HarborUserResponse.d.ts +16 -0
- package/api/types/HarborUserResponse.js +3 -0
- package/api/types/IdentityCredentialApiKeyProfileSchema.d.ts +12 -0
- package/api/types/IdentityCredentialApiKeyProfileSchema.js +3 -0
- package/api/types/IdentityCredentialCapabilitiesSchema.d.ts +5 -0
- package/api/types/IdentityCredentialCapabilitiesSchema.js +3 -0
- package/api/types/IdentityCredentialConnectionCapabilitySchema.d.ts +4 -0
- package/api/types/IdentityCredentialConnectionCapabilitySchema.js +3 -0
- package/api/types/IdentityCredentialHarborSchema.d.ts +10 -0
- package/api/types/IdentityCredentialHarborSchema.js +3 -0
- package/api/types/IdentityCredentialSchema.d.ts +13 -0
- package/api/types/IdentityCredentialSchema.js +3 -0
- package/api/types/IdentityFunction.d.ts +2 -0
- package/api/types/LogsIndexEntry.d.ts +6 -0
- package/api/types/LogsIndexEntry.js +3 -0
- package/api/types/LogsIndexResponse.d.ts +9 -0
- package/api/types/LogsIndexResponse.js +3 -0
- package/api/types/LogsIndexResponseEnvelope.d.ts +4 -0
- package/api/types/LogsIndexResponseEnvelope.js +3 -0
- package/api/types/Mode.d.ts +6 -0
- package/api/types/ModelFilterCondition.d.ts +11 -0
- package/api/types/ModelFilterCondition.js +3 -0
- package/api/types/ModelFilters.d.ts +10 -0
- package/api/types/ModelFilters.js +3 -0
- package/api/types/{SyncResponse.d.ts → ModelSyncV5Response.d.ts} +7 -3
- package/api/types/ModelSyncV5Response.js +3 -0
- package/api/types/ModelSyncV5ResponseEnvelope.d.ts +4 -0
- package/api/types/ModelSyncV5ResponseEnvelope.js +3 -0
- package/api/types/{Target.d.ts → ModelSyncV5Target.d.ts} +2 -1
- package/api/types/ModelSyncV5Target.js +3 -0
- package/api/types/OverrideField.d.ts +13 -0
- package/api/types/OverrideField.js +3 -0
- package/api/types/OverrideFieldInput.d.ts +18 -0
- package/api/types/OverrideFieldInput.js +3 -0
- package/api/types/RecordLoggingSettingsEnvelope.d.ts +4 -0
- package/api/types/RecordLoggingSettingsEnvelope.js +3 -0
- package/api/types/RecordLoggingSettingsResponse.d.ts +8 -0
- package/api/types/RecordLoggingSettingsResponse.js +3 -0
- package/api/types/RecordviewCapabilities.d.ts +12 -0
- package/api/types/RecordviewCapabilities.js +3 -0
- package/api/types/RegisterHarborSessionEnvelope.d.ts +4 -0
- package/api/types/RegisterHarborSessionEnvelope.js +3 -0
- package/api/types/RegisterHarborSessionResponse.d.ts +6 -0
- package/api/types/RegisterHarborSessionResponse.js +3 -0
- package/api/types/ResolveHarborSourceMappingsEnvelope.d.ts +12 -0
- package/api/types/ResolveHarborSourceMappingsEnvelope.js +3 -0
- package/api/types/RevokedHarborKeyEnvelope.d.ts +9 -0
- package/api/types/RevokedHarborKeyEnvelope.js +3 -0
- package/api/types/SchemaField.d.ts +5 -1
- package/api/types/SchemaFieldResponseEnvelope.d.ts +4 -0
- package/api/types/SchemaFieldResponseEnvelope.js +3 -0
- package/api/types/SyncDestinationProperties.d.ts +15 -0
- package/api/types/SyncErrorHandling.d.ts +10 -0
- package/api/types/SyncErrorHandling.js +3 -0
- package/api/types/SyncErrorHandlingEnvelope.d.ts +4 -0
- package/api/types/SyncErrorHandlingEnvelope.js +3 -0
- package/api/types/SyncField.d.ts +1 -1
- package/api/types/TargetCreator.d.ts +1 -1
- package/api/types/TargetField.d.ts +15 -0
- package/api/types/TargetFilterCondition.d.ts +13 -0
- package/api/types/TargetFilterCondition.js +3 -0
- package/api/types/TargetFilters.d.ts +10 -0
- package/api/types/TargetFilters.js +3 -0
- package/api/types/TargetResponse.d.ts +5 -0
- package/api/types/TemporaryCredentialResponse.d.ts +10 -0
- package/api/types/TemporaryCredentialResponse.js +3 -0
- package/api/types/TemporaryCredentialResponseEnvelope.d.ts +4 -0
- package/api/types/TemporaryCredentialResponseEnvelope.js +3 -0
- package/api/types/TemporaryCredentialSubject.d.ts +26 -0
- package/api/types/TemporaryCredentialSubject.js +17 -0
- package/api/types/TypesDefinition.d.ts +1 -0
- package/api/types/TypesDefinition.js +3 -0
- package/api/types/UnassignedHarborUserEnvelope.d.ts +9 -0
- package/api/types/UnassignedHarborUserEnvelope.js +3 -0
- package/api/types/index.d.ts +91 -4
- package/api/types/index.js +91 -4
- package/package.json +1 -1
- package/reference.md +5057 -1352
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/types/SyncResponseEnvelope.d.ts +0 -4
- package/api/types/TargetCreateInput.d.ts +0 -8
- /package/api/resources/bulkSync/client/requests/{BulkSyncRemoveRequest.js → BulkSyncDeleteRequest.js} +0 -0
- /package/api/resources/{connections/client/requests/ConnectionsRemoveRequest.js → bulkSync/resources/errorHandling/client/requests/UpdateBulkSyncErrorHandlingRequest.js} +0 -0
- /package/api/resources/{connections/client/requests/ExecuteConnectionProxyRequest.js → bulkSync/resources/executions/client/requests/ExecutionsGetIngestConsoleLogsRequest.js} +0 -0
- /package/api/resources/connections/client/requests/{PartnerCreateSharedConnectionRequestSchema.js → ConnectionsDeleteRequest.js} +0 -0
- /package/api/resources/{modelSync/client/requests/CreateSyncRequest.js → connections/resources/proxy/client/requests/ExecuteConnectionProxyRequest.js} +0 -0
- /package/api/resources/{modelSync/client/requests/UpdateSyncRequest.js → connections/resources/proxy/client/requests/UpdateConnectionProxySettingsRequest.js} +0 -0
- /package/api/resources/connections/{client → resources/sharedConnections/client}/requests/PartnerCreateSharedConnectionRequestSchema.d.ts +0 -0
- /package/api/resources/{models/client/requests/ModelsRemoveRequest.js → connections/resources/sharedConnections/client/requests/PartnerCreateSharedConnectionRequestSchema.js} +0 -0
- /package/api/{types/SyncResponse.js → resources/harbors/client/requests/CreateHarborContextDraftRequest.js} +0 -0
- /package/api/{types/SyncResponseEnvelope.js → resources/harbors/client/requests/CreateHarborContextRequest.js} +0 -0
- /package/api/{types/Target.js → resources/harbors/client/requests/CreateHarborRequest.js} +0 -0
- /package/api/{types/TargetCreateInput.js → resources/harbors/client/requests/HarborsCloseSessionRequest.js} +0 -0
|
@@ -51,10 +51,20 @@ const environments = __importStar(require("../../../../environments"));
|
|
|
51
51
|
const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
|
|
52
52
|
const errors = __importStar(require("../../../../errors/index"));
|
|
53
53
|
const Polytomic = __importStar(require("../../../index"));
|
|
54
|
+
const Client_1 = require("../resources/proxy/client/Client");
|
|
55
|
+
const Client_2 = require("../resources/sharedConnections/client/Client");
|
|
54
56
|
class ConnectionsClient {
|
|
55
57
|
constructor(options = {}) {
|
|
56
58
|
this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
|
|
57
59
|
}
|
|
60
|
+
get proxy() {
|
|
61
|
+
var _a;
|
|
62
|
+
return ((_a = this._proxy) !== null && _a !== void 0 ? _a : (this._proxy = new Client_1.ProxyClient(this._options)));
|
|
63
|
+
}
|
|
64
|
+
get sharedConnections() {
|
|
65
|
+
var _a;
|
|
66
|
+
return ((_a = this._sharedConnections) !== null && _a !== void 0 ? _a : (this._sharedConnections = new Client_2.SharedConnectionsClient(this._options)));
|
|
67
|
+
}
|
|
58
68
|
/**
|
|
59
69
|
* Lists all connection types supported by this deployment.
|
|
60
70
|
*
|
|
@@ -398,7 +408,13 @@ class ConnectionsClient {
|
|
|
398
408
|
});
|
|
399
409
|
}
|
|
400
410
|
/**
|
|
401
|
-
* Creates a Polytomic Connect session and returns a
|
|
411
|
+
* Creates a Polytomic Connect session and returns a URL for creating or reconnecting a Connection.
|
|
412
|
+
*
|
|
413
|
+
* Open the returned URL, or send it to the person who will set up the Connection.
|
|
414
|
+
* Polytomic Connect guides them through authentication and configuration, then
|
|
415
|
+
* redirects them to `redirect_url`.
|
|
416
|
+
*
|
|
417
|
+
* Each session can create or reconnect one Connection.
|
|
402
418
|
*
|
|
403
419
|
* See also:
|
|
404
420
|
*
|
|
@@ -409,6 +425,8 @@ class ConnectionsClient {
|
|
|
409
425
|
*
|
|
410
426
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
411
427
|
* @throws {@link Polytomic.ForbiddenError}
|
|
428
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
429
|
+
* @throws {@link Polytomic.ConflictError}
|
|
412
430
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
413
431
|
* @throws {@link Polytomic.InternalServerError}
|
|
414
432
|
*
|
|
@@ -455,6 +473,10 @@ class ConnectionsClient {
|
|
|
455
473
|
throw new Polytomic.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
456
474
|
case 403:
|
|
457
475
|
throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
476
|
+
case 404:
|
|
477
|
+
throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
478
|
+
case 409:
|
|
479
|
+
throw new Polytomic.ConflictError(_response.error.body, _response.rawResponse);
|
|
458
480
|
case 422:
|
|
459
481
|
throw new Polytomic.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
460
482
|
case 500:
|
|
@@ -470,6 +492,62 @@ class ConnectionsClient {
|
|
|
470
492
|
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/api/connections/connect/");
|
|
471
493
|
});
|
|
472
494
|
}
|
|
495
|
+
/**
|
|
496
|
+
* Returns trusted metadata for the authenticated Polytomic Connect session.
|
|
497
|
+
*
|
|
498
|
+
* Returns the trusted metadata stored for a Polytomic Connect session. Authenticate with the opaque Connect token in the `token` query parameter.
|
|
499
|
+
*
|
|
500
|
+
* The response includes the server-enforced connection name, fixed type or whitelist, bound connection ID, completion redirect, branding, and absolute expiration time.
|
|
501
|
+
*
|
|
502
|
+
* @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
503
|
+
*
|
|
504
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
505
|
+
*
|
|
506
|
+
* @example
|
|
507
|
+
* await client.connections.getConnectSession()
|
|
508
|
+
*/
|
|
509
|
+
getConnectSession(requestOptions) {
|
|
510
|
+
return core.HttpResponsePromise.fromPromise(this.__getConnectSession(requestOptions));
|
|
511
|
+
}
|
|
512
|
+
__getConnectSession(requestOptions) {
|
|
513
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
514
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
515
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
516
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
517
|
+
"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",
|
|
518
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
519
|
+
const _response = yield core.fetcher({
|
|
520
|
+
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/session"),
|
|
521
|
+
method: "GET",
|
|
522
|
+
headers: _headers,
|
|
523
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
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,
|
|
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,
|
|
529
|
+
});
|
|
530
|
+
if (_response.ok) {
|
|
531
|
+
return {
|
|
532
|
+
data: _response.body,
|
|
533
|
+
rawResponse: _response.rawResponse,
|
|
534
|
+
};
|
|
535
|
+
}
|
|
536
|
+
if (_response.error.reason === "status-code") {
|
|
537
|
+
switch (_response.error.statusCode) {
|
|
538
|
+
case 401:
|
|
539
|
+
throw new Polytomic.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
540
|
+
default:
|
|
541
|
+
throw new errors.PolytomicError({
|
|
542
|
+
statusCode: _response.error.statusCode,
|
|
543
|
+
body: _response.error.body,
|
|
544
|
+
rawResponse: _response.rawResponse,
|
|
545
|
+
});
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/connections/connect/session");
|
|
549
|
+
});
|
|
550
|
+
}
|
|
473
551
|
/**
|
|
474
552
|
* Tests a connection configuration.
|
|
475
553
|
*
|
|
@@ -711,7 +789,7 @@ class ConnectionsClient {
|
|
|
711
789
|
* > resources before removing the connection.
|
|
712
790
|
*
|
|
713
791
|
* @param {string} id
|
|
714
|
-
* @param {Polytomic.
|
|
792
|
+
* @param {Polytomic.ConnectionsDeleteRequest} request
|
|
715
793
|
* @param {ConnectionsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
716
794
|
*
|
|
717
795
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
@@ -721,14 +799,14 @@ class ConnectionsClient {
|
|
|
721
799
|
* @throws {@link Polytomic.InternalServerError}
|
|
722
800
|
*
|
|
723
801
|
* @example
|
|
724
|
-
* await client.connections.
|
|
802
|
+
* await client.connections.delete("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
725
803
|
* force: true
|
|
726
804
|
* })
|
|
727
805
|
*/
|
|
728
|
-
|
|
729
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
806
|
+
delete(id, request = {}, requestOptions) {
|
|
807
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(id, request, requestOptions));
|
|
730
808
|
}
|
|
731
|
-
|
|
809
|
+
__delete(id_1) {
|
|
732
810
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
733
811
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
734
812
|
const { force } = request;
|
|
@@ -847,149 +925,36 @@ class ConnectionsClient {
|
|
|
847
925
|
});
|
|
848
926
|
}
|
|
849
927
|
/**
|
|
850
|
-
*
|
|
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
|
|
928
|
+
* Returns the connection's API consumption over the last 24 hours, broken down by sync when the backend supports it.
|
|
865
929
|
*
|
|
866
|
-
*
|
|
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`.
|
|
930
|
+
* Not all integrations support usage reporting.
|
|
873
931
|
*
|
|
874
|
-
*
|
|
875
|
-
*
|
|
932
|
+
* - `callsLast24h` is null when the backend does not expose a usage count.
|
|
933
|
+
* - `reportsSyncStats` is `false`, and `bySync` is empty, when the backend
|
|
934
|
+
* reports a total but cannot attribute calls to individual syncs.
|
|
876
935
|
*
|
|
877
|
-
*
|
|
878
|
-
*
|
|
879
|
-
*
|
|
880
|
-
*
|
|
881
|
-
*
|
|
882
|
-
*
|
|
883
|
-
*
|
|
884
|
-
* @throws {@link Polytomic.NotFoundError}
|
|
885
|
-
* @throws {@link Polytomic.TooManyRequestsError}
|
|
886
|
-
* @throws {@link Polytomic.InternalServerError}
|
|
887
|
-
* @throws {@link Polytomic.BadGatewayError}
|
|
888
|
-
* @throws {@link Polytomic.GatewayTimeoutError}
|
|
936
|
+
* When per-sync stats are available, each entry in `bySync` carries a
|
|
937
|
+
* `categories` breakdown. **Category keys and labels are integration-specific.**
|
|
938
|
+
* For example, Salesforce reports `rest` and `bulk` categories
|
|
939
|
+
* (collapsing Bulk API v1 and v2 into a single `bulk` bucket), while another
|
|
940
|
+
* integration may report an entirely different set or none at all. Treat `key`
|
|
941
|
+
* as an opaque, backend-defined identifier and use `label` for display; do not
|
|
942
|
+
* assume a fixed vocabulary across connection types.
|
|
889
943
|
*
|
|
890
|
-
* @
|
|
891
|
-
* await client.connections.executeProxy("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
892
|
-
* request: {
|
|
893
|
-
* method: "GET",
|
|
894
|
-
* path: "/v1/objects"
|
|
895
|
-
* }
|
|
896
|
-
* })
|
|
897
|
-
*/
|
|
898
|
-
executeProxy(id, request, requestOptions) {
|
|
899
|
-
return core.HttpResponsePromise.fromPromise(this.__executeProxy(id, request, requestOptions));
|
|
900
|
-
}
|
|
901
|
-
__executeProxy(id, request, requestOptions) {
|
|
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);
|
|
909
|
-
const _response = yield core.fetcher({
|
|
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`),
|
|
911
|
-
method: "POST",
|
|
912
|
-
headers: _headers,
|
|
913
|
-
contentType: "application/json",
|
|
914
|
-
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
915
|
-
requestType: "json",
|
|
916
|
-
body: request,
|
|
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,
|
|
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,
|
|
922
|
-
});
|
|
923
|
-
if (_response.ok) {
|
|
924
|
-
return {
|
|
925
|
-
data: _response.body,
|
|
926
|
-
rawResponse: _response.rawResponse,
|
|
927
|
-
};
|
|
928
|
-
}
|
|
929
|
-
if (_response.error.reason === "status-code") {
|
|
930
|
-
switch (_response.error.statusCode) {
|
|
931
|
-
case 400:
|
|
932
|
-
throw new Polytomic.BadRequestError(_response.error.body, _response.rawResponse);
|
|
933
|
-
case 401:
|
|
934
|
-
throw new Polytomic.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
935
|
-
case 403:
|
|
936
|
-
throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
937
|
-
case 404:
|
|
938
|
-
throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
939
|
-
case 429:
|
|
940
|
-
throw new Polytomic.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
941
|
-
case 500:
|
|
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);
|
|
947
|
-
default:
|
|
948
|
-
throw new errors.PolytomicError({
|
|
949
|
-
statusCode: _response.error.statusCode,
|
|
950
|
-
body: _response.error.body,
|
|
951
|
-
rawResponse: _response.rawResponse,
|
|
952
|
-
});
|
|
953
|
-
}
|
|
954
|
-
}
|
|
955
|
-
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/api/connections/{id}/proxy");
|
|
956
|
-
});
|
|
957
|
-
}
|
|
958
|
-
/**
|
|
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
|
|
972
|
-
*
|
|
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.
|
|
976
|
-
*
|
|
977
|
-
* @param {string} id - Unique identifier of the connection whose proxy contract should be returned.
|
|
944
|
+
* @param {string} id - Unique identifier of the connection whose API consumption should be returned.
|
|
978
945
|
* @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
979
946
|
*
|
|
980
|
-
* @throws {@link Polytomic.BadRequestError}
|
|
981
947
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
982
|
-
* @throws {@link Polytomic.ForbiddenError}
|
|
983
948
|
* @throws {@link Polytomic.NotFoundError}
|
|
984
949
|
* @throws {@link Polytomic.InternalServerError}
|
|
985
950
|
*
|
|
986
951
|
* @example
|
|
987
|
-
* await client.connections.
|
|
952
|
+
* await client.connections.getUsage("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
988
953
|
*/
|
|
989
|
-
|
|
990
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
954
|
+
getUsage(id, requestOptions) {
|
|
955
|
+
return core.HttpResponsePromise.fromPromise(this.__getUsage(id, requestOptions));
|
|
991
956
|
}
|
|
992
|
-
|
|
957
|
+
__getUsage(id, requestOptions) {
|
|
993
958
|
return __awaiter(this, void 0, void 0, function* () {
|
|
994
959
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
995
960
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
@@ -997,7 +962,7 @@ class ConnectionsClient {
|
|
|
997
962
|
"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
963
|
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
999
964
|
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)}/
|
|
965
|
+
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)}/usage`),
|
|
1001
966
|
method: "GET",
|
|
1002
967
|
headers: _headers,
|
|
1003
968
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
@@ -1008,233 +973,12 @@ class ConnectionsClient {
|
|
|
1008
973
|
logging: this._options.logging,
|
|
1009
974
|
});
|
|
1010
975
|
if (_response.ok) {
|
|
1011
|
-
return {
|
|
1012
|
-
data: _response.body,
|
|
1013
|
-
rawResponse: _response.rawResponse,
|
|
1014
|
-
};
|
|
976
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
1015
977
|
}
|
|
1016
978
|
if (_response.error.reason === "status-code") {
|
|
1017
979
|
switch (_response.error.statusCode) {
|
|
1018
|
-
case 400:
|
|
1019
|
-
throw new Polytomic.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1020
980
|
case 401:
|
|
1021
981
|
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}
|
|
1057
|
-
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
1058
|
-
* @throws {@link Polytomic.InternalServerError}
|
|
1059
|
-
*
|
|
1060
|
-
* @example
|
|
1061
|
-
* await client.connections.listSharedConnections("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
1062
|
-
*/
|
|
1063
|
-
listSharedConnections(id, requestOptions) {
|
|
1064
|
-
return core.HttpResponsePromise.fromPromise(this.__listSharedConnections(id, requestOptions));
|
|
1065
|
-
}
|
|
1066
|
-
__listSharedConnections(id, requestOptions) {
|
|
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);
|
|
1073
|
-
const _response = yield core.fetcher({
|
|
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`),
|
|
1075
|
-
method: "GET",
|
|
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,
|
|
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,
|
|
1083
|
-
});
|
|
1084
|
-
if (_response.ok) {
|
|
1085
|
-
return {
|
|
1086
|
-
data: _response.body,
|
|
1087
|
-
rawResponse: _response.rawResponse,
|
|
1088
|
-
};
|
|
1089
|
-
}
|
|
1090
|
-
if (_response.error.reason === "status-code") {
|
|
1091
|
-
switch (_response.error.statusCode) {
|
|
1092
|
-
case 403:
|
|
1093
|
-
throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
1094
|
-
case 404:
|
|
1095
|
-
throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1096
|
-
case 422:
|
|
1097
|
-
throw new Polytomic.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
1098
|
-
case 500:
|
|
1099
|
-
throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1100
|
-
default:
|
|
1101
|
-
throw new errors.PolytomicError({
|
|
1102
|
-
statusCode: _response.error.statusCode,
|
|
1103
|
-
body: _response.error.body,
|
|
1104
|
-
rawResponse: _response.rawResponse,
|
|
1105
|
-
});
|
|
1106
|
-
}
|
|
1107
|
-
}
|
|
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
|
-
}
|
|
1180
|
-
}
|
|
1181
|
-
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/organizations/{org_id}/connections/{connection_id}/shared");
|
|
1182
|
-
});
|
|
1183
|
-
}
|
|
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) {
|
|
1207
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
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
982
|
case 404:
|
|
1239
983
|
throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1240
984
|
case 500:
|
|
@@ -1247,7 +991,7 @@ class ConnectionsClient {
|
|
|
1247
991
|
});
|
|
1248
992
|
}
|
|
1249
993
|
}
|
|
1250
|
-
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "
|
|
994
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/connections/{id}/usage");
|
|
1251
995
|
});
|
|
1252
996
|
}
|
|
1253
997
|
}
|
|
@@ -15,8 +15,12 @@ export interface ConnectCardRequest {
|
|
|
15
15
|
organization_id?: string;
|
|
16
16
|
/** URL to redirect to after connection is created. */
|
|
17
17
|
redirect_url: string;
|
|
18
|
+
/** Connect session lifetime in seconds. Defaults to 300 and cannot exceed 604800. */
|
|
19
|
+
ttl?: number;
|
|
18
20
|
/** Connection type to create. */
|
|
19
21
|
type?: string;
|
|
22
|
+
/** Whether to display the target organization name instead of the partner name in the Connect modal. Defaults to false; organizations without a partner always display their organization name. */
|
|
23
|
+
use_organization_name?: boolean;
|
|
20
24
|
/** List of connection types which are allowed to be created. Ignored if type is set. */
|
|
21
25
|
whitelist?: string[];
|
|
22
26
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
export type { ConnectCardRequest } from "./ConnectCardRequest";
|
|
2
|
-
export type {
|
|
2
|
+
export type { ConnectionsDeleteRequest } from "./ConnectionsDeleteRequest";
|
|
3
3
|
export type { CreateConnectionRequestSchema } from "./CreateConnectionRequestSchema";
|
|
4
|
-
export type { ExecuteConnectionProxyRequest } from "./ExecuteConnectionProxyRequest";
|
|
5
4
|
export type { GetConnectionTypeParameterValuesRequestSchema } from "./GetConnectionTypeParameterValuesRequestSchema";
|
|
6
|
-
export type { PartnerCreateSharedConnectionRequestSchema } from "./PartnerCreateSharedConnectionRequestSchema";
|
|
7
5
|
export type { TestConnectionRequest } from "./TestConnectionRequest";
|
|
8
6
|
export type { UpdateConnectionRequestSchema } from "./UpdateConnectionRequestSchema";
|
|
@@ -19,3 +19,4 @@ exports.ConnectionsClient = void 0;
|
|
|
19
19
|
var Client_1 = require("./client/Client");
|
|
20
20
|
Object.defineProperty(exports, "ConnectionsClient", { enumerable: true, get: function () { return Client_1.ConnectionsClient; } });
|
|
21
21
|
__exportStar(require("./client/index"), exports);
|
|
22
|
+
__exportStar(require("./resources/index"), exports);
|