polytomic 25.9.2 → 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 +3 -0
- package/api/resources/bulkSync/client/Client.js +11 -6
- package/api/resources/bulkSync/client/requests/StartBulkSyncRequest.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 -2
- package/api/resources/bulkSync/resources/executions/client/Client.js +79 -2
- 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 +47 -136
- package/api/resources/connections/client/Client.js +99 -345
- package/api/resources/connections/client/requests/ConnectCardRequest.d.ts +4 -0
- package/api/resources/connections/client/requests/index.d.ts +0 -2
- 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/HarborsCloseSessionRequest.js +3 -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 +10 -5
- package/api/resources/modelSync/client/Client.js +29 -9
- 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 -4
- package/api/resources/modelSync/resources/executions/client/Client.js +60 -4
- 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/organization/client/Client.d.ts +33 -0
- package/api/resources/organization/client/Client.js +129 -0
- 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/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 +2 -2
- package/api/resources/users/client/Client.js +4 -1
- 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 +5034 -1329
- 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/{connections/client/requests/ExecuteConnectionProxyRequest.js → bulkSync/resources/errorHandling/client/requests/UpdateBulkSyncErrorHandlingRequest.js} +0 -0
- /package/api/resources/{connections/client/requests/PartnerCreateSharedConnectionRequestSchema.js → bulkSync/resources/executions/client/requests/ExecutionsGetIngestConsoleLogsRequest.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/{types/SyncResponse.js → resources/connections/resources/sharedConnections/client/requests/PartnerCreateSharedConnectionRequestSchema.js} +0 -0
- /package/api/{types/SyncResponseEnvelope.js → resources/harbors/client/requests/CreateHarborContextDraftRequest.js} +0 -0
- /package/api/{types/Target.js → resources/harbors/client/requests/CreateHarborContextRequest.js} +0 -0
- /package/api/{types/TargetCreateInput.js → resources/harbors/client/requests/CreateHarborRequest.js} +0 -0
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseIdempotentRequestOptions, BaseRequestOptions } from "../../../../../../BaseClient";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient";
|
|
3
|
+
import * as core from "../../../../../../core";
|
|
4
|
+
import * as Polytomic from "../../../../../index";
|
|
5
|
+
export declare namespace ProxyClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
interface IdempotentRequestOptions extends RequestOptions, BaseIdempotentRequestOptions {
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export declare class ProxyClient {
|
|
13
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<ProxyClient.Options>;
|
|
14
|
+
constructor(options?: ProxyClient.Options);
|
|
15
|
+
/**
|
|
16
|
+
* 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.
|
|
17
|
+
*
|
|
18
|
+
* This endpoint is intended for controlled passthrough use, not as a general
|
|
19
|
+
* replacement for Polytomic's modeled endpoints. The request is executed with the
|
|
20
|
+
* connection's stored credentials and inherited base URL, headers, and query
|
|
21
|
+
* parameters.
|
|
22
|
+
*
|
|
23
|
+
* Before building requests dynamically, call
|
|
24
|
+
* [`GET /api/connections/{id}/proxy/info`](../../../../api-reference/connections/get-proxy-info)
|
|
25
|
+
* to inspect the inherited base URL, blocked headers, accepted body types, and
|
|
26
|
+
* size and rate limits.
|
|
27
|
+
*
|
|
28
|
+
* ## Important behavior
|
|
29
|
+
*
|
|
30
|
+
* - `request.path` must be relative and start with `/`.
|
|
31
|
+
* - Use either `request.query` or `request.rawQuery`, not both.
|
|
32
|
+
* - Caller-supplied headers are merged with inherited headers, but inherited auth
|
|
33
|
+
* headers cannot be overridden.
|
|
34
|
+
* - The proxy strips a fixed set of request and response headers for safety.
|
|
35
|
+
* - Response bodies larger than the configured maximum are truncated, and
|
|
36
|
+
* `truncated` is set to `true`.
|
|
37
|
+
*
|
|
38
|
+
* To run a `GET` request asynchronously, set `async` to `true`. The initial
|
|
39
|
+
* response returns `status: 202`, `jobId`, `jobStatus`, and `jobUrl`. Poll
|
|
40
|
+
* [`GET /api/jobs/{type}/{id}`](../../../../api-reference/jobs/get-job) with
|
|
41
|
+
* `type=connectionproxy` and the returned `jobId` until the job is complete. The
|
|
42
|
+
* completed job result includes the upstream `status`, sanitized `headers`,
|
|
43
|
+
* `contentType`, `contentLength`, `latencyMs`, and a short-lived
|
|
44
|
+
* `bodyDownloadUrl` for the upstream response body.
|
|
45
|
+
*
|
|
46
|
+
* The response includes `proxyCallId`, which you can use to correlate the call
|
|
47
|
+
* with audit logs.
|
|
48
|
+
*
|
|
49
|
+
* @param {string} id - Unique identifier of the connection to proxy the request through.
|
|
50
|
+
* @param {Polytomic.connections.ExecuteConnectionProxyRequest} request
|
|
51
|
+
* @param {ProxyClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
52
|
+
*
|
|
53
|
+
* @throws {@link Polytomic.BadRequestError}
|
|
54
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
55
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
56
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
57
|
+
* @throws {@link Polytomic.TooManyRequestsError}
|
|
58
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
59
|
+
* @throws {@link Polytomic.BadGatewayError}
|
|
60
|
+
* @throws {@link Polytomic.GatewayTimeoutError}
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* await client.connections.proxy.executeProxy("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
64
|
+
* request: {
|
|
65
|
+
* method: "GET",
|
|
66
|
+
* path: "/v1/objects"
|
|
67
|
+
* }
|
|
68
|
+
* })
|
|
69
|
+
*/
|
|
70
|
+
executeProxy(id: string, request: Polytomic.connections.ExecuteConnectionProxyRequest, requestOptions?: ProxyClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.ExecuteConnectionProxyEnvelope>;
|
|
71
|
+
private __executeProxy;
|
|
72
|
+
/**
|
|
73
|
+
* Returns the proxy contract for a connection.
|
|
74
|
+
*
|
|
75
|
+
* Use this endpoint before calling
|
|
76
|
+
* [`POST /api/connections/{id}/proxy`](../../../../../api-reference/connections/execute-proxy)
|
|
77
|
+
* when you need to build requests programmatically. The response shows:
|
|
78
|
+
*
|
|
79
|
+
* - the inherited base URL that all proxied requests are sent to
|
|
80
|
+
* - locked headers and query parameters that are attached automatically
|
|
81
|
+
* - blocked request and response headers
|
|
82
|
+
* - allowed HTTP methods and body shapes
|
|
83
|
+
* - timeout, rate-limit, and payload-size limits
|
|
84
|
+
*
|
|
85
|
+
* Sensitive inherited header and query values are redacted in the response. The
|
|
86
|
+
* contract is still useful for discovering which keys are fixed by the
|
|
87
|
+
* connection, even though their raw values are not exposed.
|
|
88
|
+
*
|
|
89
|
+
* @param {string} id - Unique identifier of the connection whose proxy contract should be returned.
|
|
90
|
+
* @param {ProxyClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
91
|
+
*
|
|
92
|
+
* @throws {@link Polytomic.BadRequestError}
|
|
93
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
94
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
95
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
96
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* await client.connections.proxy.getProxyInfo("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
100
|
+
*/
|
|
101
|
+
getProxyInfo(id: string, requestOptions?: ProxyClient.RequestOptions): core.HttpResponsePromise<Polytomic.GetConnectionProxyInfoEnvelope>;
|
|
102
|
+
private __getProxyInfo;
|
|
103
|
+
/**
|
|
104
|
+
* Returns whether a connection can be used through the Connection Proxy API.
|
|
105
|
+
*
|
|
106
|
+
* The setting is stored on the parent connection. When you request settings for a
|
|
107
|
+
* shared connection, the response includes both the requested `connectionId` and the
|
|
108
|
+
* `parentConnectionId` that controls proxy access. For non-shared connections,
|
|
109
|
+
* `parentConnectionId` is omitted.
|
|
110
|
+
*
|
|
111
|
+
* @param {string} id - Unique identifier of the connection whose proxy settings should be returned.
|
|
112
|
+
* @param {ProxyClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
113
|
+
*
|
|
114
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
115
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
116
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
117
|
+
*
|
|
118
|
+
* @example
|
|
119
|
+
* await client.connections.proxy.getProxySettings("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
120
|
+
*/
|
|
121
|
+
getProxySettings(id: string, requestOptions?: ProxyClient.RequestOptions): core.HttpResponsePromise<Polytomic.ConnectionProxySettingsEnvelope>;
|
|
122
|
+
private __getProxySettings;
|
|
123
|
+
/**
|
|
124
|
+
* Enables or disables use of a connection through the Connection Proxy API.
|
|
125
|
+
*
|
|
126
|
+
* The setting is stored on the parent connection. To update proxy access for a
|
|
127
|
+
* shared connection, the caller must have edit permission for the parent
|
|
128
|
+
* connection.
|
|
129
|
+
*
|
|
130
|
+
* Enabling proxy access requires a backend that supports the Connection Proxy API.
|
|
131
|
+
* If the connection backend is unsupported, the request returns `400 Bad Request`.
|
|
132
|
+
* Disabling proxy access is allowed for any connection the caller can edit.
|
|
133
|
+
*
|
|
134
|
+
* Setting `enabled` to `false` prevents proxy calls for the connection.
|
|
135
|
+
*
|
|
136
|
+
* @param {string} id - Unique identifier of the connection whose proxy settings should be updated.
|
|
137
|
+
* @param {Polytomic.connections.UpdateConnectionProxySettingsRequest} request
|
|
138
|
+
* @param {ProxyClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
139
|
+
*
|
|
140
|
+
* @throws {@link Polytomic.BadRequestError}
|
|
141
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
142
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
143
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
144
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
145
|
+
*
|
|
146
|
+
* @example
|
|
147
|
+
* await client.connections.proxy.updateProxySettings("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
148
|
+
* enabled: true
|
|
149
|
+
* })
|
|
150
|
+
*/
|
|
151
|
+
updateProxySettings(id: string, request: Polytomic.connections.UpdateConnectionProxySettingsRequest, requestOptions?: ProxyClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.ConnectionProxySettingsEnvelope>;
|
|
152
|
+
private __updateProxySettings;
|
|
153
|
+
}
|
|
@@ -0,0 +1,399 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
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
|
+
})();
|
|
36
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
+
exports.ProxyClient = void 0;
|
|
47
|
+
const BaseClient_1 = require("../../../../../../BaseClient");
|
|
48
|
+
const core = __importStar(require("../../../../../../core"));
|
|
49
|
+
const headers_1 = require("../../../../../../core/headers");
|
|
50
|
+
const environments = __importStar(require("../../../../../../environments"));
|
|
51
|
+
const handleNonStatusCodeError_1 = require("../../../../../../errors/handleNonStatusCodeError");
|
|
52
|
+
const errors = __importStar(require("../../../../../../errors/index"));
|
|
53
|
+
const Polytomic = __importStar(require("../../../../../index"));
|
|
54
|
+
class ProxyClient {
|
|
55
|
+
constructor(options = {}) {
|
|
56
|
+
this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* 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.
|
|
60
|
+
*
|
|
61
|
+
* This endpoint is intended for controlled passthrough use, not as a general
|
|
62
|
+
* replacement for Polytomic's modeled endpoints. The request is executed with the
|
|
63
|
+
* connection's stored credentials and inherited base URL, headers, and query
|
|
64
|
+
* parameters.
|
|
65
|
+
*
|
|
66
|
+
* Before building requests dynamically, call
|
|
67
|
+
* [`GET /api/connections/{id}/proxy/info`](../../../../api-reference/connections/get-proxy-info)
|
|
68
|
+
* to inspect the inherited base URL, blocked headers, accepted body types, and
|
|
69
|
+
* size and rate limits.
|
|
70
|
+
*
|
|
71
|
+
* ## Important behavior
|
|
72
|
+
*
|
|
73
|
+
* - `request.path` must be relative and start with `/`.
|
|
74
|
+
* - Use either `request.query` or `request.rawQuery`, not both.
|
|
75
|
+
* - Caller-supplied headers are merged with inherited headers, but inherited auth
|
|
76
|
+
* headers cannot be overridden.
|
|
77
|
+
* - The proxy strips a fixed set of request and response headers for safety.
|
|
78
|
+
* - Response bodies larger than the configured maximum are truncated, and
|
|
79
|
+
* `truncated` is set to `true`.
|
|
80
|
+
*
|
|
81
|
+
* To run a `GET` request asynchronously, set `async` to `true`. The initial
|
|
82
|
+
* response returns `status: 202`, `jobId`, `jobStatus`, and `jobUrl`. Poll
|
|
83
|
+
* [`GET /api/jobs/{type}/{id}`](../../../../api-reference/jobs/get-job) with
|
|
84
|
+
* `type=connectionproxy` and the returned `jobId` until the job is complete. The
|
|
85
|
+
* completed job result includes the upstream `status`, sanitized `headers`,
|
|
86
|
+
* `contentType`, `contentLength`, `latencyMs`, and a short-lived
|
|
87
|
+
* `bodyDownloadUrl` for the upstream response body.
|
|
88
|
+
*
|
|
89
|
+
* The response includes `proxyCallId`, which you can use to correlate the call
|
|
90
|
+
* with audit logs.
|
|
91
|
+
*
|
|
92
|
+
* @param {string} id - Unique identifier of the connection to proxy the request through.
|
|
93
|
+
* @param {Polytomic.connections.ExecuteConnectionProxyRequest} request
|
|
94
|
+
* @param {ProxyClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link Polytomic.BadRequestError}
|
|
97
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
98
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
99
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
100
|
+
* @throws {@link Polytomic.TooManyRequestsError}
|
|
101
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
102
|
+
* @throws {@link Polytomic.BadGatewayError}
|
|
103
|
+
* @throws {@link Polytomic.GatewayTimeoutError}
|
|
104
|
+
*
|
|
105
|
+
* @example
|
|
106
|
+
* await client.connections.proxy.executeProxy("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
107
|
+
* request: {
|
|
108
|
+
* method: "GET",
|
|
109
|
+
* path: "/v1/objects"
|
|
110
|
+
* }
|
|
111
|
+
* })
|
|
112
|
+
*/
|
|
113
|
+
executeProxy(id, request, requestOptions) {
|
|
114
|
+
return core.HttpResponsePromise.fromPromise(this.__executeProxy(id, request, requestOptions));
|
|
115
|
+
}
|
|
116
|
+
__executeProxy(id, request, requestOptions) {
|
|
117
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
118
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
119
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
120
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
121
|
+
"Idempotency-Key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey,
|
|
122
|
+
"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",
|
|
123
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
124
|
+
const _response = yield core.fetcher({
|
|
125
|
+
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`),
|
|
126
|
+
method: "POST",
|
|
127
|
+
headers: _headers,
|
|
128
|
+
contentType: "application/json",
|
|
129
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
130
|
+
requestType: "json",
|
|
131
|
+
body: request,
|
|
132
|
+
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,
|
|
133
|
+
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,
|
|
134
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
135
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
136
|
+
logging: this._options.logging,
|
|
137
|
+
});
|
|
138
|
+
if (_response.ok) {
|
|
139
|
+
return {
|
|
140
|
+
data: _response.body,
|
|
141
|
+
rawResponse: _response.rawResponse,
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
if (_response.error.reason === "status-code") {
|
|
145
|
+
switch (_response.error.statusCode) {
|
|
146
|
+
case 400:
|
|
147
|
+
throw new Polytomic.BadRequestError(_response.error.body, _response.rawResponse);
|
|
148
|
+
case 401:
|
|
149
|
+
throw new Polytomic.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
150
|
+
case 403:
|
|
151
|
+
throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
152
|
+
case 404:
|
|
153
|
+
throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
154
|
+
case 429:
|
|
155
|
+
throw new Polytomic.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
156
|
+
case 500:
|
|
157
|
+
throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
|
|
158
|
+
case 502:
|
|
159
|
+
throw new Polytomic.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
160
|
+
case 504:
|
|
161
|
+
throw new Polytomic.GatewayTimeoutError(_response.error.body, _response.rawResponse);
|
|
162
|
+
default:
|
|
163
|
+
throw new errors.PolytomicError({
|
|
164
|
+
statusCode: _response.error.statusCode,
|
|
165
|
+
body: _response.error.body,
|
|
166
|
+
rawResponse: _response.rawResponse,
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/api/connections/{id}/proxy");
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Returns the proxy contract for a connection.
|
|
175
|
+
*
|
|
176
|
+
* Use this endpoint before calling
|
|
177
|
+
* [`POST /api/connections/{id}/proxy`](../../../../../api-reference/connections/execute-proxy)
|
|
178
|
+
* when you need to build requests programmatically. The response shows:
|
|
179
|
+
*
|
|
180
|
+
* - the inherited base URL that all proxied requests are sent to
|
|
181
|
+
* - locked headers and query parameters that are attached automatically
|
|
182
|
+
* - blocked request and response headers
|
|
183
|
+
* - allowed HTTP methods and body shapes
|
|
184
|
+
* - timeout, rate-limit, and payload-size limits
|
|
185
|
+
*
|
|
186
|
+
* Sensitive inherited header and query values are redacted in the response. The
|
|
187
|
+
* contract is still useful for discovering which keys are fixed by the
|
|
188
|
+
* connection, even though their raw values are not exposed.
|
|
189
|
+
*
|
|
190
|
+
* @param {string} id - Unique identifier of the connection whose proxy contract should be returned.
|
|
191
|
+
* @param {ProxyClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
192
|
+
*
|
|
193
|
+
* @throws {@link Polytomic.BadRequestError}
|
|
194
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
195
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
196
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
197
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
198
|
+
*
|
|
199
|
+
* @example
|
|
200
|
+
* await client.connections.proxy.getProxyInfo("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
201
|
+
*/
|
|
202
|
+
getProxyInfo(id, requestOptions) {
|
|
203
|
+
return core.HttpResponsePromise.fromPromise(this.__getProxyInfo(id, requestOptions));
|
|
204
|
+
}
|
|
205
|
+
__getProxyInfo(id, requestOptions) {
|
|
206
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
207
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
208
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
209
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
210
|
+
"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",
|
|
211
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
212
|
+
const _response = yield core.fetcher({
|
|
213
|
+
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`),
|
|
214
|
+
method: "GET",
|
|
215
|
+
headers: _headers,
|
|
216
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
217
|
+
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,
|
|
218
|
+
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,
|
|
219
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
220
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
221
|
+
logging: this._options.logging,
|
|
222
|
+
});
|
|
223
|
+
if (_response.ok) {
|
|
224
|
+
return {
|
|
225
|
+
data: _response.body,
|
|
226
|
+
rawResponse: _response.rawResponse,
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
if (_response.error.reason === "status-code") {
|
|
230
|
+
switch (_response.error.statusCode) {
|
|
231
|
+
case 400:
|
|
232
|
+
throw new Polytomic.BadRequestError(_response.error.body, _response.rawResponse);
|
|
233
|
+
case 401:
|
|
234
|
+
throw new Polytomic.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
235
|
+
case 403:
|
|
236
|
+
throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
237
|
+
case 404:
|
|
238
|
+
throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
239
|
+
case 500:
|
|
240
|
+
throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
|
|
241
|
+
default:
|
|
242
|
+
throw new errors.PolytomicError({
|
|
243
|
+
statusCode: _response.error.statusCode,
|
|
244
|
+
body: _response.error.body,
|
|
245
|
+
rawResponse: _response.rawResponse,
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/connections/{id}/proxy/info");
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* Returns whether a connection can be used through the Connection Proxy API.
|
|
254
|
+
*
|
|
255
|
+
* The setting is stored on the parent connection. When you request settings for a
|
|
256
|
+
* shared connection, the response includes both the requested `connectionId` and the
|
|
257
|
+
* `parentConnectionId` that controls proxy access. For non-shared connections,
|
|
258
|
+
* `parentConnectionId` is omitted.
|
|
259
|
+
*
|
|
260
|
+
* @param {string} id - Unique identifier of the connection whose proxy settings should be returned.
|
|
261
|
+
* @param {ProxyClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
262
|
+
*
|
|
263
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
264
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
265
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
266
|
+
*
|
|
267
|
+
* @example
|
|
268
|
+
* await client.connections.proxy.getProxySettings("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
269
|
+
*/
|
|
270
|
+
getProxySettings(id, requestOptions) {
|
|
271
|
+
return core.HttpResponsePromise.fromPromise(this.__getProxySettings(id, requestOptions));
|
|
272
|
+
}
|
|
273
|
+
__getProxySettings(id, requestOptions) {
|
|
274
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
275
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
276
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
277
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
278
|
+
"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",
|
|
279
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
280
|
+
const _response = yield core.fetcher({
|
|
281
|
+
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/settings`),
|
|
282
|
+
method: "GET",
|
|
283
|
+
headers: _headers,
|
|
284
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
285
|
+
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,
|
|
286
|
+
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,
|
|
287
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
288
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
289
|
+
logging: this._options.logging,
|
|
290
|
+
});
|
|
291
|
+
if (_response.ok) {
|
|
292
|
+
return {
|
|
293
|
+
data: _response.body,
|
|
294
|
+
rawResponse: _response.rawResponse,
|
|
295
|
+
};
|
|
296
|
+
}
|
|
297
|
+
if (_response.error.reason === "status-code") {
|
|
298
|
+
switch (_response.error.statusCode) {
|
|
299
|
+
case 401:
|
|
300
|
+
throw new Polytomic.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
301
|
+
case 404:
|
|
302
|
+
throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
303
|
+
case 500:
|
|
304
|
+
throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
|
|
305
|
+
default:
|
|
306
|
+
throw new errors.PolytomicError({
|
|
307
|
+
statusCode: _response.error.statusCode,
|
|
308
|
+
body: _response.error.body,
|
|
309
|
+
rawResponse: _response.rawResponse,
|
|
310
|
+
});
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/connections/{id}/proxy/settings");
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
/**
|
|
317
|
+
* Enables or disables use of a connection through the Connection Proxy API.
|
|
318
|
+
*
|
|
319
|
+
* The setting is stored on the parent connection. To update proxy access for a
|
|
320
|
+
* shared connection, the caller must have edit permission for the parent
|
|
321
|
+
* connection.
|
|
322
|
+
*
|
|
323
|
+
* Enabling proxy access requires a backend that supports the Connection Proxy API.
|
|
324
|
+
* If the connection backend is unsupported, the request returns `400 Bad Request`.
|
|
325
|
+
* Disabling proxy access is allowed for any connection the caller can edit.
|
|
326
|
+
*
|
|
327
|
+
* Setting `enabled` to `false` prevents proxy calls for the connection.
|
|
328
|
+
*
|
|
329
|
+
* @param {string} id - Unique identifier of the connection whose proxy settings should be updated.
|
|
330
|
+
* @param {Polytomic.connections.UpdateConnectionProxySettingsRequest} request
|
|
331
|
+
* @param {ProxyClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
332
|
+
*
|
|
333
|
+
* @throws {@link Polytomic.BadRequestError}
|
|
334
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
335
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
336
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
337
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
338
|
+
*
|
|
339
|
+
* @example
|
|
340
|
+
* await client.connections.proxy.updateProxySettings("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
341
|
+
* enabled: true
|
|
342
|
+
* })
|
|
343
|
+
*/
|
|
344
|
+
updateProxySettings(id, request, requestOptions) {
|
|
345
|
+
return core.HttpResponsePromise.fromPromise(this.__updateProxySettings(id, request, requestOptions));
|
|
346
|
+
}
|
|
347
|
+
__updateProxySettings(id, request, requestOptions) {
|
|
348
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
349
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
350
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
351
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
352
|
+
"Idempotency-Key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey,
|
|
353
|
+
"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",
|
|
354
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
355
|
+
const _response = yield core.fetcher({
|
|
356
|
+
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/settings`),
|
|
357
|
+
method: "PUT",
|
|
358
|
+
headers: _headers,
|
|
359
|
+
contentType: "application/json",
|
|
360
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
361
|
+
requestType: "json",
|
|
362
|
+
body: request,
|
|
363
|
+
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,
|
|
364
|
+
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,
|
|
365
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
366
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
367
|
+
logging: this._options.logging,
|
|
368
|
+
});
|
|
369
|
+
if (_response.ok) {
|
|
370
|
+
return {
|
|
371
|
+
data: _response.body,
|
|
372
|
+
rawResponse: _response.rawResponse,
|
|
373
|
+
};
|
|
374
|
+
}
|
|
375
|
+
if (_response.error.reason === "status-code") {
|
|
376
|
+
switch (_response.error.statusCode) {
|
|
377
|
+
case 400:
|
|
378
|
+
throw new Polytomic.BadRequestError(_response.error.body, _response.rawResponse);
|
|
379
|
+
case 401:
|
|
380
|
+
throw new Polytomic.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
381
|
+
case 403:
|
|
382
|
+
throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
383
|
+
case 404:
|
|
384
|
+
throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
385
|
+
case 500:
|
|
386
|
+
throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
|
|
387
|
+
default:
|
|
388
|
+
throw new errors.PolytomicError({
|
|
389
|
+
statusCode: _response.error.statusCode,
|
|
390
|
+
body: _response.error.body,
|
|
391
|
+
rawResponse: _response.rawResponse,
|
|
392
|
+
});
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PUT", "/api/connections/{id}/proxy/settings");
|
|
396
|
+
});
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
exports.ProxyClient = ProxyClient;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type * as Polytomic from "
|
|
1
|
+
import type * as Polytomic from "../../../../../../index";
|
|
2
2
|
/**
|
|
3
3
|
* @example
|
|
4
4
|
* {
|
|
@@ -9,5 +9,7 @@ import type * as Polytomic from "../../../../index";
|
|
|
9
9
|
* }
|
|
10
10
|
*/
|
|
11
11
|
export interface ExecuteConnectionProxyRequest {
|
|
12
|
+
/** When true, submits a GET request for asynchronous execution and returns a job handle instead of a synchronous upstream response. */
|
|
13
|
+
async?: boolean;
|
|
12
14
|
request: Polytomic.ConnectionProxyCall;
|
|
13
15
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.ProxyClient = void 0;
|
|
19
|
+
var Client_1 = require("./client/Client");
|
|
20
|
+
Object.defineProperty(exports, "ProxyClient", { enumerable: true, get: function () { return Client_1.ProxyClient; } });
|
|
21
|
+
__exportStar(require("./client/index"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client";
|