polytomic 25.9.2 → 25.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BaseClient.d.ts +15 -0
- package/BaseClient.js +17 -2
- package/Client.d.ts +9 -0
- package/Client.js +37 -22
- package/api/errors/BadGatewayError.d.ts +1 -0
- package/api/errors/BadGatewayError.js +1 -1
- package/api/errors/BadRequestError.d.ts +1 -0
- package/api/errors/BadRequestError.js +1 -1
- package/api/errors/ConflictError.d.ts +1 -0
- package/api/errors/ConflictError.js +1 -1
- package/api/errors/ForbiddenError.d.ts +1 -0
- package/api/errors/ForbiddenError.js +1 -1
- package/api/errors/GatewayTimeoutError.d.ts +1 -0
- package/api/errors/GatewayTimeoutError.js +1 -1
- package/api/errors/InternalServerError.d.ts +1 -0
- package/api/errors/InternalServerError.js +1 -1
- package/api/errors/NotFoundError.d.ts +1 -0
- package/api/errors/NotFoundError.js +1 -1
- package/api/errors/RequestTimeoutError.d.ts +1 -0
- package/api/errors/RequestTimeoutError.js +1 -1
- package/api/errors/ServiceUnavailableError.d.ts +7 -0
- package/api/errors/ServiceUnavailableError.js +54 -0
- package/api/errors/TooManyRequestsError.d.ts +1 -0
- package/api/errors/TooManyRequestsError.js +1 -1
- package/api/errors/UnauthorizedError.d.ts +1 -0
- package/api/errors/UnauthorizedError.js +1 -1
- package/api/errors/UnprocessableEntityError.d.ts +1 -0
- package/api/errors/UnprocessableEntityError.js +1 -1
- package/api/errors/index.d.ts +1 -0
- package/api/errors/index.js +1 -0
- package/api/resources/bulkSync/client/Client.d.ts +25 -0
- package/api/resources/bulkSync/client/Client.js +38 -10
- package/api/resources/bulkSync/client/requests/StartBulkSyncRequest.d.ts +1 -1
- package/api/resources/bulkSync/resources/errorHandling/client/Client.d.ts +51 -0
- package/api/resources/bulkSync/resources/errorHandling/client/Client.js +190 -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 +41 -2
- package/api/resources/bulkSync/resources/executions/client/Client.js +97 -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/bulkSync/resources/schedules/client/Client.d.ts +10 -0
- package/api/resources/bulkSync/resources/schedules/client/Client.js +13 -2
- package/api/resources/bulkSync/resources/schemas/client/Client.d.ts +10 -0
- package/api/resources/bulkSync/resources/schemas/client/Client.js +13 -2
- package/api/resources/bulkSync/resources/schemas/client/requests/SchemasListRequest.d.ts +1 -1
- package/api/resources/connections/client/Client.d.ts +73 -136
- package/api/resources/connections/client/Client.js +131 -350
- 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 +161 -0
- package/api/resources/connections/resources/proxy/client/Client.js +408 -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 +89 -0
- package/api/resources/connections/resources/sharedConnections/client/Client.js +274 -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 +15 -2
- package/api/resources/entities/client/Client.js +15 -2
- package/api/resources/events/client/Client.d.ts +5 -0
- package/api/resources/events/client/Client.js +5 -0
- package/api/resources/harbors/client/Client.d.ts +789 -0
- package/api/resources/harbors/client/Client.js +2362 -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/identity/client/Client.d.ts +2 -0
- package/api/resources/identity/client/Client.js +2 -0
- package/api/resources/index.d.ts +6 -0
- package/api/resources/index.js +7 -1
- package/api/resources/jobs/client/Client.d.ts +3 -1
- package/api/resources/jobs/client/Client.js +3 -1
- package/api/resources/modelSync/client/Client.d.ts +34 -5
- package/api/resources/modelSync/client/Client.js +58 -13
- 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/ModelSyncGetSourceFieldsRequest.d.ts +1 -1
- package/api/resources/modelSync/client/requests/ModelSyncGetSourceRequest.d.ts +1 -1
- 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 +51 -0
- package/api/resources/modelSync/resources/errorHandling/client/Client.js +184 -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 +35 -4
- package/api/resources/modelSync/resources/executions/client/Client.js +74 -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 +46 -5
- package/api/resources/modelSync/resources/targets/client/Client.js +65 -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 +18 -0
- package/api/resources/models/client/Client.js +23 -4
- package/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.d.ts +1 -1
- package/api/resources/notifications/client/Client.d.ts +4 -0
- package/api/resources/notifications/client/Client.js +6 -1
- package/api/resources/organization/client/Client.d.ts +49 -0
- package/api/resources/organization/client/Client.js +148 -2
- 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 +10 -0
- package/api/resources/permissions/resources/policies/client/Client.js +13 -2
- package/api/resources/permissions/resources/roles/client/Client.d.ts +10 -0
- package/api/resources/permissions/resources/roles/client/Client.js +13 -2
- package/api/resources/queryRunner/client/Client.d.ts +4 -0
- package/api/resources/queryRunner/client/Client.js +6 -1
- package/api/resources/recordViewLinks/client/Client.d.ts +59 -0
- package/api/resources/recordViewLinks/client/Client.js +211 -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 +36 -0
- package/api/resources/schemas/client/Client.js +87 -2
- 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 +178 -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 +24 -2
- package/api/resources/users/client/Client.js +31 -5
- package/api/resources/webhooks/client/Client.d.ts +14 -0
- package/api/resources/webhooks/client/Client.js +17 -2
- 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/ConnectionParameterValuesResponseEnvelope.d.ts +1 -1
- package/api/types/ConnectionProxyResponse.d.ts +8 -2
- 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/SyncSourceMetaResponse.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/core/auth/AuthProvider.d.ts +1 -0
- package/core/auth/AuthProvider.js +7 -0
- package/core/auth/index.d.ts +1 -1
- package/core/auth/index.js +3 -1
- package/core/fetcher/Fetcher.js +9 -92
- package/core/fetcher/getResponseBody.js +11 -0
- package/core/fetcher/makePassthroughRequest.js +26 -4
- package/core/fetcher/redactUrl.d.ts +2 -0
- package/core/fetcher/redactUrl.js +88 -0
- package/core/fetcher/requestWithRetries.js +4 -1
- package/core/fetcher/signals.js +9 -1
- package/core/requestBody.d.ts +12 -0
- package/core/requestBody.js +26 -0
- package/core/runtime/index.d.ts +1 -1
- package/core/runtime/index.js +2 -1
- package/core/runtime/runtime.d.ts +19 -0
- package/core/runtime/runtime.js +74 -2
- package/core/url/qs.js +2 -2
- package/errors/PolytomicError.d.ts +1 -0
- package/errors/PolytomicError.js +5 -1
- package/errors/PolytomicTimeoutError.d.ts +2 -2
- package/errors/PolytomicTimeoutError.js +40 -6
- package/package.json +2 -2
- 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
|
@@ -29,12 +29,51 @@ export declare class OrganizationClient {
|
|
|
29
29
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
30
30
|
* @throws {@link Polytomic.ForbiddenError}
|
|
31
31
|
* @throws {@link Polytomic.NotFoundError}
|
|
32
|
+
* @throws {@link errors.PolytomicError}
|
|
33
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
32
34
|
*
|
|
33
35
|
* @example
|
|
34
36
|
* await client.organization.getCurrent()
|
|
35
37
|
*/
|
|
36
38
|
getCurrent(requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<Polytomic.OrganizationEnvelope>;
|
|
37
39
|
private __getCurrent;
|
|
40
|
+
/**
|
|
41
|
+
* Returns the organization's record logging settings, including the connection record logs are delivered to.
|
|
42
|
+
*
|
|
43
|
+
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
44
|
+
*
|
|
45
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
46
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
47
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
48
|
+
* @throws {@link errors.PolytomicError}
|
|
49
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* await client.organization.getRecordLogging()
|
|
53
|
+
*/
|
|
54
|
+
getRecordLogging(requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<Polytomic.RecordLoggingSettingsEnvelope>;
|
|
55
|
+
private __getRecordLogging;
|
|
56
|
+
/**
|
|
57
|
+
* Replaces the organization's record logging settings. `deliveryConnectionId` is replaced, not merged: omitting it, or sending null, removes any destination previously configured.
|
|
58
|
+
*
|
|
59
|
+
* @param {Polytomic.UpdateRecordLoggingSettingsRequest} request
|
|
60
|
+
* @param {OrganizationClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
63
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
64
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
65
|
+
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
66
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
67
|
+
* @throws {@link errors.PolytomicError}
|
|
68
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* await client.organization.updateRecordLogging({
|
|
72
|
+
* enabled: true
|
|
73
|
+
* })
|
|
74
|
+
*/
|
|
75
|
+
updateRecordLogging(request: Polytomic.UpdateRecordLoggingSettingsRequest, requestOptions?: OrganizationClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.RecordLoggingSettingsEnvelope>;
|
|
76
|
+
private __updateRecordLogging;
|
|
38
77
|
/**
|
|
39
78
|
* Lists every organization accessible to the calling partner, with the partner's owner organization first.
|
|
40
79
|
*
|
|
@@ -51,6 +90,8 @@ export declare class OrganizationClient {
|
|
|
51
90
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
52
91
|
*
|
|
53
92
|
* @throws {@link Polytomic.InternalServerError}
|
|
93
|
+
* @throws {@link errors.PolytomicError}
|
|
94
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
54
95
|
*
|
|
55
96
|
* @example
|
|
56
97
|
* await client.organization.list()
|
|
@@ -73,6 +114,8 @@ export declare class OrganizationClient {
|
|
|
73
114
|
* @throws {@link Polytomic.ConflictError}
|
|
74
115
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
75
116
|
* @throws {@link Polytomic.InternalServerError}
|
|
117
|
+
* @throws {@link errors.PolytomicError}
|
|
118
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
76
119
|
*
|
|
77
120
|
* @example
|
|
78
121
|
* await client.organization.create({
|
|
@@ -96,6 +139,8 @@ export declare class OrganizationClient {
|
|
|
96
139
|
* @throws {@link Polytomic.ForbiddenError}
|
|
97
140
|
* @throws {@link Polytomic.NotFoundError}
|
|
98
141
|
* @throws {@link Polytomic.InternalServerError}
|
|
142
|
+
* @throws {@link errors.PolytomicError}
|
|
143
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
99
144
|
*
|
|
100
145
|
* @example
|
|
101
146
|
* await client.organization.get("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -120,6 +165,8 @@ export declare class OrganizationClient {
|
|
|
120
165
|
* @throws {@link Polytomic.ConflictError}
|
|
121
166
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
122
167
|
* @throws {@link Polytomic.InternalServerError}
|
|
168
|
+
* @throws {@link errors.PolytomicError}
|
|
169
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
123
170
|
*
|
|
124
171
|
* @example
|
|
125
172
|
* await client.organization.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -139,6 +186,8 @@ export declare class OrganizationClient {
|
|
|
139
186
|
* @throws {@link Polytomic.ForbiddenError}
|
|
140
187
|
* @throws {@link Polytomic.NotFoundError}
|
|
141
188
|
* @throws {@link Polytomic.InternalServerError}
|
|
189
|
+
* @throws {@link errors.PolytomicError}
|
|
190
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
142
191
|
*
|
|
143
192
|
* @example
|
|
144
193
|
* await client.organization.delete("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -47,6 +47,7 @@ exports.OrganizationClient = void 0;
|
|
|
47
47
|
const BaseClient_1 = require("../../../../BaseClient");
|
|
48
48
|
const core = __importStar(require("../../../../core"));
|
|
49
49
|
const headers_1 = require("../../../../core/headers");
|
|
50
|
+
const requestBody_1 = require("../../../../core/requestBody");
|
|
50
51
|
const environments = __importStar(require("../../../../environments"));
|
|
51
52
|
const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
|
|
52
53
|
const errors = __importStar(require("../../../../errors/index"));
|
|
@@ -72,6 +73,8 @@ class OrganizationClient {
|
|
|
72
73
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
73
74
|
* @throws {@link Polytomic.ForbiddenError}
|
|
74
75
|
* @throws {@link Polytomic.NotFoundError}
|
|
76
|
+
* @throws {@link errors.PolytomicError}
|
|
77
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
75
78
|
*
|
|
76
79
|
* @example
|
|
77
80
|
* await client.organization.getCurrent()
|
|
@@ -119,6 +122,139 @@ class OrganizationClient {
|
|
|
119
122
|
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/organization");
|
|
120
123
|
});
|
|
121
124
|
}
|
|
125
|
+
/**
|
|
126
|
+
* Returns the organization's record logging settings, including the connection record logs are delivered to.
|
|
127
|
+
*
|
|
128
|
+
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
129
|
+
*
|
|
130
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
131
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
132
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
133
|
+
* @throws {@link errors.PolytomicError}
|
|
134
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
135
|
+
*
|
|
136
|
+
* @example
|
|
137
|
+
* await client.organization.getRecordLogging()
|
|
138
|
+
*/
|
|
139
|
+
getRecordLogging(requestOptions) {
|
|
140
|
+
return core.HttpResponsePromise.fromPromise(this.__getRecordLogging(requestOptions));
|
|
141
|
+
}
|
|
142
|
+
__getRecordLogging(requestOptions) {
|
|
143
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
144
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
145
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
146
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
147
|
+
"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",
|
|
148
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
149
|
+
const _response = yield core.fetcher({
|
|
150
|
+
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/organization/record-logging"),
|
|
151
|
+
method: "GET",
|
|
152
|
+
headers: _headers,
|
|
153
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
154
|
+
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,
|
|
155
|
+
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,
|
|
156
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
157
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
158
|
+
logging: this._options.logging,
|
|
159
|
+
});
|
|
160
|
+
if (_response.ok) {
|
|
161
|
+
return {
|
|
162
|
+
data: _response.body,
|
|
163
|
+
rawResponse: _response.rawResponse,
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
if (_response.error.reason === "status-code") {
|
|
167
|
+
switch (_response.error.statusCode) {
|
|
168
|
+
case 401:
|
|
169
|
+
throw new Polytomic.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
170
|
+
case 403:
|
|
171
|
+
throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
172
|
+
case 500:
|
|
173
|
+
throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
|
|
174
|
+
default:
|
|
175
|
+
throw new errors.PolytomicError({
|
|
176
|
+
statusCode: _response.error.statusCode,
|
|
177
|
+
body: _response.error.body,
|
|
178
|
+
rawResponse: _response.rawResponse,
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/organization/record-logging");
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Replaces the organization's record logging settings. `deliveryConnectionId` is replaced, not merged: omitting it, or sending null, removes any destination previously configured.
|
|
187
|
+
*
|
|
188
|
+
* @param {Polytomic.UpdateRecordLoggingSettingsRequest} request
|
|
189
|
+
* @param {OrganizationClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
190
|
+
*
|
|
191
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
192
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
193
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
194
|
+
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
195
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
196
|
+
* @throws {@link errors.PolytomicError}
|
|
197
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
198
|
+
*
|
|
199
|
+
* @example
|
|
200
|
+
* await client.organization.updateRecordLogging({
|
|
201
|
+
* enabled: true
|
|
202
|
+
* })
|
|
203
|
+
*/
|
|
204
|
+
updateRecordLogging(request, requestOptions) {
|
|
205
|
+
return core.HttpResponsePromise.fromPromise(this.__updateRecordLogging(request, requestOptions));
|
|
206
|
+
}
|
|
207
|
+
__updateRecordLogging(request, requestOptions) {
|
|
208
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
209
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
210
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
211
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
212
|
+
"Idempotency-Key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey,
|
|
213
|
+
"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",
|
|
214
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
215
|
+
const _response = yield core.fetcher({
|
|
216
|
+
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/organization/record-logging"),
|
|
217
|
+
method: "PUT",
|
|
218
|
+
headers: _headers,
|
|
219
|
+
contentType: "application/json",
|
|
220
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
221
|
+
requestType: "json",
|
|
222
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
223
|
+
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,
|
|
224
|
+
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,
|
|
225
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
226
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
227
|
+
logging: this._options.logging,
|
|
228
|
+
});
|
|
229
|
+
if (_response.ok) {
|
|
230
|
+
return {
|
|
231
|
+
data: _response.body,
|
|
232
|
+
rawResponse: _response.rawResponse,
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
if (_response.error.reason === "status-code") {
|
|
236
|
+
switch (_response.error.statusCode) {
|
|
237
|
+
case 401:
|
|
238
|
+
throw new Polytomic.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
239
|
+
case 403:
|
|
240
|
+
throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
241
|
+
case 404:
|
|
242
|
+
throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
243
|
+
case 422:
|
|
244
|
+
throw new Polytomic.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
245
|
+
case 500:
|
|
246
|
+
throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
|
|
247
|
+
default:
|
|
248
|
+
throw new errors.PolytomicError({
|
|
249
|
+
statusCode: _response.error.statusCode,
|
|
250
|
+
body: _response.error.body,
|
|
251
|
+
rawResponse: _response.rawResponse,
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PUT", "/api/organization/record-logging");
|
|
256
|
+
});
|
|
257
|
+
}
|
|
122
258
|
/**
|
|
123
259
|
* Lists every organization accessible to the calling partner, with the partner's owner organization first.
|
|
124
260
|
*
|
|
@@ -135,6 +271,8 @@ class OrganizationClient {
|
|
|
135
271
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
136
272
|
*
|
|
137
273
|
* @throws {@link Polytomic.InternalServerError}
|
|
274
|
+
* @throws {@link errors.PolytomicError}
|
|
275
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
138
276
|
*
|
|
139
277
|
* @example
|
|
140
278
|
* await client.organization.list()
|
|
@@ -194,6 +332,8 @@ class OrganizationClient {
|
|
|
194
332
|
* @throws {@link Polytomic.ConflictError}
|
|
195
333
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
196
334
|
* @throws {@link Polytomic.InternalServerError}
|
|
335
|
+
* @throws {@link errors.PolytomicError}
|
|
336
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
197
337
|
*
|
|
198
338
|
* @example
|
|
199
339
|
* await client.organization.create({
|
|
@@ -218,7 +358,7 @@ class OrganizationClient {
|
|
|
218
358
|
contentType: "application/json",
|
|
219
359
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
220
360
|
requestType: "json",
|
|
221
|
-
body: request,
|
|
361
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
222
362
|
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,
|
|
223
363
|
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,
|
|
224
364
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -262,6 +402,8 @@ class OrganizationClient {
|
|
|
262
402
|
* @throws {@link Polytomic.ForbiddenError}
|
|
263
403
|
* @throws {@link Polytomic.NotFoundError}
|
|
264
404
|
* @throws {@link Polytomic.InternalServerError}
|
|
405
|
+
* @throws {@link errors.PolytomicError}
|
|
406
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
265
407
|
*
|
|
266
408
|
* @example
|
|
267
409
|
* await client.organization.get("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -327,6 +469,8 @@ class OrganizationClient {
|
|
|
327
469
|
* @throws {@link Polytomic.ConflictError}
|
|
328
470
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
329
471
|
* @throws {@link Polytomic.InternalServerError}
|
|
472
|
+
* @throws {@link errors.PolytomicError}
|
|
473
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
330
474
|
*
|
|
331
475
|
* @example
|
|
332
476
|
* await client.organization.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -351,7 +495,7 @@ class OrganizationClient {
|
|
|
351
495
|
contentType: "application/json",
|
|
352
496
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
353
497
|
requestType: "json",
|
|
354
|
-
body: request,
|
|
498
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
355
499
|
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,
|
|
356
500
|
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,
|
|
357
501
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -393,6 +537,8 @@ class OrganizationClient {
|
|
|
393
537
|
* @throws {@link Polytomic.ForbiddenError}
|
|
394
538
|
* @throws {@link Polytomic.NotFoundError}
|
|
395
539
|
* @throws {@link Polytomic.InternalServerError}
|
|
540
|
+
* @throws {@link errors.PolytomicError}
|
|
541
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
396
542
|
*
|
|
397
543
|
* @example
|
|
398
544
|
* await client.organization.delete("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* enabled: true
|
|
5
|
+
* }
|
|
6
|
+
*/
|
|
7
|
+
export interface UpdateRecordLoggingSettingsRequest {
|
|
8
|
+
/** Blobstorage connection that receives record logs after each model sync execution. Omit or send null to deliver nowhere; this field is replaced, not merged. */
|
|
9
|
+
deliveryConnectionId?: string;
|
|
10
|
+
/** Whether record logging is enabled for the organization. */
|
|
11
|
+
enabled: boolean;
|
|
12
|
+
}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export type { CreateOrganizationRequestSchema } from "./CreateOrganizationRequestSchema";
|
|
2
2
|
export type { UpdateOrganizationRequestSchema } from "./UpdateOrganizationRequestSchema";
|
|
3
|
+
export type { UpdateRecordLoggingSettingsRequest } from "./UpdateRecordLoggingSettingsRequest";
|
|
@@ -24,6 +24,8 @@ export declare class PoliciesClient {
|
|
|
24
24
|
* @param {PoliciesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
25
25
|
*
|
|
26
26
|
* @throws {@link Polytomic.InternalServerError}
|
|
27
|
+
* @throws {@link errors.PolytomicError}
|
|
28
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
27
29
|
*
|
|
28
30
|
* @example
|
|
29
31
|
* await client.permissions.policies.list()
|
|
@@ -45,6 +47,8 @@ export declare class PoliciesClient {
|
|
|
45
47
|
* @throws {@link Polytomic.ForbiddenError}
|
|
46
48
|
* @throws {@link Polytomic.NotFoundError}
|
|
47
49
|
* @throws {@link Polytomic.InternalServerError}
|
|
50
|
+
* @throws {@link errors.PolytomicError}
|
|
51
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
48
52
|
*
|
|
49
53
|
* @example
|
|
50
54
|
* await client.permissions.policies.create({
|
|
@@ -64,6 +68,8 @@ export declare class PoliciesClient {
|
|
|
64
68
|
*
|
|
65
69
|
* @throws {@link Polytomic.NotFoundError}
|
|
66
70
|
* @throws {@link Polytomic.InternalServerError}
|
|
71
|
+
* @throws {@link errors.PolytomicError}
|
|
72
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
67
73
|
*
|
|
68
74
|
* @example
|
|
69
75
|
* await client.permissions.policies.get("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -87,6 +93,8 @@ export declare class PoliciesClient {
|
|
|
87
93
|
* @throws {@link Polytomic.ForbiddenError}
|
|
88
94
|
* @throws {@link Polytomic.NotFoundError}
|
|
89
95
|
* @throws {@link Polytomic.InternalServerError}
|
|
96
|
+
* @throws {@link errors.PolytomicError}
|
|
97
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
90
98
|
*
|
|
91
99
|
* @example
|
|
92
100
|
* await client.permissions.policies.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -107,6 +115,8 @@ export declare class PoliciesClient {
|
|
|
107
115
|
* @throws {@link Polytomic.ForbiddenError}
|
|
108
116
|
* @throws {@link Polytomic.NotFoundError}
|
|
109
117
|
* @throws {@link Polytomic.InternalServerError}
|
|
118
|
+
* @throws {@link errors.PolytomicError}
|
|
119
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
110
120
|
*
|
|
111
121
|
* @example
|
|
112
122
|
* await client.permissions.policies.delete("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -47,6 +47,7 @@ exports.PoliciesClient = void 0;
|
|
|
47
47
|
const BaseClient_1 = require("../../../../../../BaseClient");
|
|
48
48
|
const core = __importStar(require("../../../../../../core"));
|
|
49
49
|
const headers_1 = require("../../../../../../core/headers");
|
|
50
|
+
const requestBody_1 = require("../../../../../../core/requestBody");
|
|
50
51
|
const environments = __importStar(require("../../../../../../environments"));
|
|
51
52
|
const handleNonStatusCodeError_1 = require("../../../../../../errors/handleNonStatusCodeError");
|
|
52
53
|
const errors = __importStar(require("../../../../../../errors/index"));
|
|
@@ -67,6 +68,8 @@ class PoliciesClient {
|
|
|
67
68
|
* @param {PoliciesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
69
|
*
|
|
69
70
|
* @throws {@link Polytomic.InternalServerError}
|
|
71
|
+
* @throws {@link errors.PolytomicError}
|
|
72
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
70
73
|
*
|
|
71
74
|
* @example
|
|
72
75
|
* await client.permissions.policies.list()
|
|
@@ -128,6 +131,8 @@ class PoliciesClient {
|
|
|
128
131
|
* @throws {@link Polytomic.ForbiddenError}
|
|
129
132
|
* @throws {@link Polytomic.NotFoundError}
|
|
130
133
|
* @throws {@link Polytomic.InternalServerError}
|
|
134
|
+
* @throws {@link errors.PolytomicError}
|
|
135
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
131
136
|
*
|
|
132
137
|
* @example
|
|
133
138
|
* await client.permissions.policies.create({
|
|
@@ -152,7 +157,7 @@ class PoliciesClient {
|
|
|
152
157
|
contentType: "application/json",
|
|
153
158
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
154
159
|
requestType: "json",
|
|
155
|
-
body: request,
|
|
160
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
156
161
|
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,
|
|
157
162
|
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,
|
|
158
163
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -194,6 +199,8 @@ class PoliciesClient {
|
|
|
194
199
|
*
|
|
195
200
|
* @throws {@link Polytomic.NotFoundError}
|
|
196
201
|
* @throws {@link Polytomic.InternalServerError}
|
|
202
|
+
* @throws {@link errors.PolytomicError}
|
|
203
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
197
204
|
*
|
|
198
205
|
* @example
|
|
199
206
|
* await client.permissions.policies.get("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -256,6 +263,8 @@ class PoliciesClient {
|
|
|
256
263
|
* @throws {@link Polytomic.ForbiddenError}
|
|
257
264
|
* @throws {@link Polytomic.NotFoundError}
|
|
258
265
|
* @throws {@link Polytomic.InternalServerError}
|
|
266
|
+
* @throws {@link errors.PolytomicError}
|
|
267
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
259
268
|
*
|
|
260
269
|
* @example
|
|
261
270
|
* await client.permissions.policies.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -280,7 +289,7 @@ class PoliciesClient {
|
|
|
280
289
|
contentType: "application/json",
|
|
281
290
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
282
291
|
requestType: "json",
|
|
283
|
-
body: request,
|
|
292
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
284
293
|
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
285
294
|
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,
|
|
286
295
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -323,6 +332,8 @@ class PoliciesClient {
|
|
|
323
332
|
* @throws {@link Polytomic.ForbiddenError}
|
|
324
333
|
* @throws {@link Polytomic.NotFoundError}
|
|
325
334
|
* @throws {@link Polytomic.InternalServerError}
|
|
335
|
+
* @throws {@link errors.PolytomicError}
|
|
336
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
326
337
|
*
|
|
327
338
|
* @example
|
|
328
339
|
* await client.permissions.policies.delete("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -25,6 +25,8 @@ export declare class RolesClient {
|
|
|
25
25
|
* @param {RolesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
26
|
*
|
|
27
27
|
* @throws {@link Polytomic.InternalServerError}
|
|
28
|
+
* @throws {@link errors.PolytomicError}
|
|
29
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
28
30
|
*
|
|
29
31
|
* @example
|
|
30
32
|
* await client.permissions.roles.list()
|
|
@@ -47,6 +49,8 @@ export declare class RolesClient {
|
|
|
47
49
|
* @throws {@link Polytomic.ForbiddenError}
|
|
48
50
|
* @throws {@link Polytomic.NotFoundError}
|
|
49
51
|
* @throws {@link Polytomic.InternalServerError}
|
|
52
|
+
* @throws {@link errors.PolytomicError}
|
|
53
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
50
54
|
*
|
|
51
55
|
* @example
|
|
52
56
|
* await client.permissions.roles.create({
|
|
@@ -64,6 +68,8 @@ export declare class RolesClient {
|
|
|
64
68
|
* @param {RolesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
65
69
|
*
|
|
66
70
|
* @throws {@link Polytomic.NotFoundError}
|
|
71
|
+
* @throws {@link errors.PolytomicError}
|
|
72
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
67
73
|
*
|
|
68
74
|
* @example
|
|
69
75
|
* await client.permissions.roles.get("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -86,6 +92,8 @@ export declare class RolesClient {
|
|
|
86
92
|
* @throws {@link Polytomic.ForbiddenError}
|
|
87
93
|
* @throws {@link Polytomic.NotFoundError}
|
|
88
94
|
* @throws {@link Polytomic.InternalServerError}
|
|
95
|
+
* @throws {@link errors.PolytomicError}
|
|
96
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
89
97
|
*
|
|
90
98
|
* @example
|
|
91
99
|
* await client.permissions.roles.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -111,6 +119,8 @@ export declare class RolesClient {
|
|
|
111
119
|
* @throws {@link Polytomic.ForbiddenError}
|
|
112
120
|
* @throws {@link Polytomic.NotFoundError}
|
|
113
121
|
* @throws {@link Polytomic.InternalServerError}
|
|
122
|
+
* @throws {@link errors.PolytomicError}
|
|
123
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
114
124
|
*
|
|
115
125
|
* @example
|
|
116
126
|
* await client.permissions.roles.delete("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -47,6 +47,7 @@ exports.RolesClient = void 0;
|
|
|
47
47
|
const BaseClient_1 = require("../../../../../../BaseClient");
|
|
48
48
|
const core = __importStar(require("../../../../../../core"));
|
|
49
49
|
const headers_1 = require("../../../../../../core/headers");
|
|
50
|
+
const requestBody_1 = require("../../../../../../core/requestBody");
|
|
50
51
|
const environments = __importStar(require("../../../../../../environments"));
|
|
51
52
|
const handleNonStatusCodeError_1 = require("../../../../../../errors/handleNonStatusCodeError");
|
|
52
53
|
const errors = __importStar(require("../../../../../../errors/index"));
|
|
@@ -68,6 +69,8 @@ class RolesClient {
|
|
|
68
69
|
* @param {RolesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
69
70
|
*
|
|
70
71
|
* @throws {@link Polytomic.InternalServerError}
|
|
72
|
+
* @throws {@link errors.PolytomicError}
|
|
73
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
71
74
|
*
|
|
72
75
|
* @example
|
|
73
76
|
* await client.permissions.roles.list()
|
|
@@ -127,6 +130,8 @@ class RolesClient {
|
|
|
127
130
|
* @throws {@link Polytomic.ForbiddenError}
|
|
128
131
|
* @throws {@link Polytomic.NotFoundError}
|
|
129
132
|
* @throws {@link Polytomic.InternalServerError}
|
|
133
|
+
* @throws {@link errors.PolytomicError}
|
|
134
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
130
135
|
*
|
|
131
136
|
* @example
|
|
132
137
|
* await client.permissions.roles.create({
|
|
@@ -151,7 +156,7 @@ class RolesClient {
|
|
|
151
156
|
contentType: "application/json",
|
|
152
157
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
153
158
|
requestType: "json",
|
|
154
|
-
body: request,
|
|
159
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
155
160
|
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,
|
|
156
161
|
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,
|
|
157
162
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -191,6 +196,8 @@ class RolesClient {
|
|
|
191
196
|
* @param {RolesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
192
197
|
*
|
|
193
198
|
* @throws {@link Polytomic.NotFoundError}
|
|
199
|
+
* @throws {@link errors.PolytomicError}
|
|
200
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
194
201
|
*
|
|
195
202
|
* @example
|
|
196
203
|
* await client.permissions.roles.get("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -250,6 +257,8 @@ class RolesClient {
|
|
|
250
257
|
* @throws {@link Polytomic.ForbiddenError}
|
|
251
258
|
* @throws {@link Polytomic.NotFoundError}
|
|
252
259
|
* @throws {@link Polytomic.InternalServerError}
|
|
260
|
+
* @throws {@link errors.PolytomicError}
|
|
261
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
253
262
|
*
|
|
254
263
|
* @example
|
|
255
264
|
* await client.permissions.roles.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -274,7 +283,7 @@ class RolesClient {
|
|
|
274
283
|
contentType: "application/json",
|
|
275
284
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
276
285
|
requestType: "json",
|
|
277
|
-
body: request,
|
|
286
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
278
287
|
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,
|
|
279
288
|
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,
|
|
280
289
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -322,6 +331,8 @@ class RolesClient {
|
|
|
322
331
|
* @throws {@link Polytomic.ForbiddenError}
|
|
323
332
|
* @throws {@link Polytomic.NotFoundError}
|
|
324
333
|
* @throws {@link Polytomic.InternalServerError}
|
|
334
|
+
* @throws {@link errors.PolytomicError}
|
|
335
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
325
336
|
*
|
|
326
337
|
* @example
|
|
327
338
|
* await client.permissions.roles.delete("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -30,6 +30,8 @@ export declare class QueryRunnerClient {
|
|
|
30
30
|
* @throws {@link Polytomic.BadRequestError}
|
|
31
31
|
* @throws {@link Polytomic.NotFoundError}
|
|
32
32
|
* @throws {@link Polytomic.InternalServerError}
|
|
33
|
+
* @throws {@link errors.PolytomicError}
|
|
34
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
33
35
|
*
|
|
34
36
|
* @example
|
|
35
37
|
* await client.queryRunner.runQuery("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -60,6 +62,8 @@ export declare class QueryRunnerClient {
|
|
|
60
62
|
* @throws {@link Polytomic.BadRequestError}
|
|
61
63
|
* @throws {@link Polytomic.NotFoundError}
|
|
62
64
|
* @throws {@link Polytomic.InternalServerError}
|
|
65
|
+
* @throws {@link errors.PolytomicError}
|
|
66
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
63
67
|
*
|
|
64
68
|
* @example
|
|
65
69
|
* await client.queryRunner.getQuery("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -58,6 +58,7 @@ exports.QueryRunnerClient = void 0;
|
|
|
58
58
|
const BaseClient_1 = require("../../../../BaseClient");
|
|
59
59
|
const core = __importStar(require("../../../../core"));
|
|
60
60
|
const headers_1 = require("../../../../core/headers");
|
|
61
|
+
const requestBody_1 = require("../../../../core/requestBody");
|
|
61
62
|
const environments = __importStar(require("../../../../environments"));
|
|
62
63
|
const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
|
|
63
64
|
const errors = __importStar(require("../../../../errors/index"));
|
|
@@ -84,6 +85,8 @@ class QueryRunnerClient {
|
|
|
84
85
|
* @throws {@link Polytomic.BadRequestError}
|
|
85
86
|
* @throws {@link Polytomic.NotFoundError}
|
|
86
87
|
* @throws {@link Polytomic.InternalServerError}
|
|
88
|
+
* @throws {@link errors.PolytomicError}
|
|
89
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
87
90
|
*
|
|
88
91
|
* @example
|
|
89
92
|
* await client.queryRunner.runQuery("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -116,7 +119,7 @@ class QueryRunnerClient {
|
|
|
116
119
|
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
117
120
|
.build(),
|
|
118
121
|
requestType: "json",
|
|
119
|
-
body: _body,
|
|
122
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
120
123
|
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,
|
|
121
124
|
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,
|
|
122
125
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -167,6 +170,8 @@ class QueryRunnerClient {
|
|
|
167
170
|
* @throws {@link Polytomic.BadRequestError}
|
|
168
171
|
* @throws {@link Polytomic.NotFoundError}
|
|
169
172
|
* @throws {@link Polytomic.InternalServerError}
|
|
173
|
+
* @throws {@link errors.PolytomicError}
|
|
174
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
170
175
|
*
|
|
171
176
|
* @example
|
|
172
177
|
* await client.queryRunner.getQuery("248df4b7-aa70-47b8-a036-33ac447e668d", {
|