polytomic 1.16.0 → 1.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +14 -19
- package/api/errors/BadRequestError.js +7 -17
- package/api/errors/ConflictError.js +7 -17
- package/api/errors/ForbiddenError.js +7 -17
- package/api/errors/InternalServerError.js +7 -17
- package/api/errors/NotFoundError.js +7 -17
- package/api/errors/UnauthorizedError.js +7 -17
- package/api/errors/UnprocessableEntityError.js +7 -17
- package/api/resources/bulkSync/client/Client.d.ts +173 -24
- package/api/resources/bulkSync/client/Client.js +339 -118
- package/api/resources/bulkSync/client/requests/BulkSyncGetSourceRequest.d.ts +3 -0
- package/api/resources/bulkSync/client/requests/BulkSyncListRequest.d.ts +3 -0
- package/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +1 -1
- package/api/resources/bulkSync/client/requests/StartBulkSyncRequest.d.ts +4 -0
- package/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +1 -1
- package/api/resources/bulkSync/resources/executions/client/Client.d.ts +77 -12
- package/api/resources/bulkSync/resources/executions/client/Client.js +168 -66
- package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListRequest.d.ts +12 -0
- package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListStatusRequest.d.ts +3 -3
- package/api/resources/bulkSync/resources/index.js +7 -17
- package/api/resources/bulkSync/resources/schedules/client/Client.d.ts +44 -15
- package/api/resources/bulkSync/resources/schedules/client/Client.js +116 -57
- package/api/resources/bulkSync/resources/schedules/client/requests/CreateScheduleRequest.d.ts +1 -1
- package/api/resources/bulkSync/resources/schedules/client/requests/UpdateScheduleRequest.d.ts +1 -1
- package/api/resources/bulkSync/resources/schemas/client/Client.d.ts +71 -11
- package/api/resources/bulkSync/resources/schemas/client/Client.js +150 -61
- package/api/resources/bulkSync/resources/schemas/client/requests/BulkSyncSchemasRequest.d.ts +1 -0
- package/api/resources/bulkSync/resources/schemas/client/requests/SchemasListRequest.d.ts +3 -0
- package/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +7 -0
- package/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItem.d.ts +1 -1
- package/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItem.d.ts +1 -1
- package/api/resources/connections/client/Client.d.ts +160 -12
- package/api/resources/connections/client/Client.js +473 -86
- package/api/resources/connections/client/requests/ApiRequest.d.ts +13 -0
- package/api/resources/connections/client/requests/GetConnectionTypeParameterValuesRequestSchema.d.ts +15 -0
- package/api/resources/connections/client/requests/index.d.ts +2 -0
- package/api/resources/events/client/Client.d.ts +20 -7
- package/api/resources/events/client/Client.js +55 -33
- package/api/resources/events/client/requests/EventsListRequest.d.ts +17 -2
- package/api/resources/identity/client/Client.d.ts +11 -6
- package/api/resources/identity/client/Client.js +31 -24
- package/api/resources/index.js +7 -17
- package/api/resources/jobs/client/Client.d.ts +15 -8
- package/api/resources/jobs/client/Client.js +35 -26
- package/api/resources/modelSync/client/Client.d.ts +110 -19
- package/api/resources/modelSync/client/Client.js +287 -118
- package/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +1 -1
- package/api/resources/modelSync/client/requests/ModelSyncGetSourceFieldsRequest.d.ts +3 -0
- package/api/resources/modelSync/client/requests/ModelSyncGetSourceRequest.d.ts +3 -0
- package/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +1 -1
- package/api/resources/modelSync/resources/executions/client/Client.d.ts +41 -12
- package/api/resources/modelSync/resources/executions/client/Client.js +115 -56
- package/api/resources/modelSync/resources/executions/client/requests/UpdateExecutionRequest.d.ts +1 -1
- package/api/resources/modelSync/resources/index.js +7 -17
- package/api/resources/modelSync/resources/targets/client/Client.d.ts +28 -11
- package/api/resources/modelSync/resources/targets/client/Client.js +89 -49
- package/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetFieldsRequest.d.ts +6 -0
- package/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetRequest.d.ts +6 -0
- package/api/resources/models/client/Client.d.ts +79 -8
- package/api/resources/models/client/Client.js +214 -86
- package/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.d.ts +3 -0
- package/api/resources/notifications/client/Client.d.ts +13 -5
- package/api/resources/notifications/client/Client.js +48 -31
- package/api/resources/notifications/client/requests/V4GlobalErrorSubscribersRequest.d.ts +1 -0
- package/api/resources/organization/client/Client.d.ts +31 -13
- package/api/resources/organization/client/Client.js +109 -55
- package/api/resources/organization/client/requests/CreateOrganizationRequestSchema.d.ts +6 -0
- package/api/resources/organization/client/requests/UpdateOrganizationRequestSchema.d.ts +6 -0
- package/api/resources/permissions/client/Client.d.ts +2 -7
- package/api/resources/permissions/resources/index.js +7 -17
- package/api/resources/permissions/resources/policies/client/Client.d.ts +33 -5
- package/api/resources/permissions/resources/policies/client/Client.js +105 -47
- package/api/resources/permissions/resources/roles/client/Client.d.ts +38 -5
- package/api/resources/permissions/resources/roles/client/Client.js +110 -47
- package/api/resources/queryRunner/client/Client.d.ts +26 -7
- package/api/resources/queryRunner/client/Client.js +63 -35
- package/api/resources/queryRunner/client/requests/QueryRunnerGetQueryRequest.d.ts +3 -0
- package/api/resources/schemas/client/Client.d.ts +118 -23
- package/api/resources/schemas/client/Client.js +232 -86
- package/api/resources/schemas/client/requests/SetPrimaryKeysRequest.d.ts +1 -0
- package/api/resources/schemas/client/requests/UpsertSchemaFieldRequest.d.ts +1 -0
- package/api/resources/users/client/Client.d.ts +44 -16
- package/api/resources/users/client/Client.js +133 -66
- package/api/resources/users/client/requests/CreateUserRequestSchema.d.ts +4 -0
- package/api/resources/users/client/requests/UpdateUserRequestSchema.d.ts +4 -0
- package/api/resources/users/client/requests/UsersCreateApiKeyRequest.d.ts +3 -0
- package/api/resources/webhooks/client/Client.d.ts +67 -21
- package/api/resources/webhooks/client/Client.js +165 -75
- package/api/types/ApiKeyResponse.d.ts +1 -0
- package/api/types/BulkBulkSyncSchedule.d.ts +1 -0
- package/api/types/BulkDiscover.d.ts +1 -1
- package/api/types/BulkExecutionStatus.d.ts +1 -1
- package/api/types/BulkFetchMode.d.ts +1 -1
- package/api/types/BulkNormalizeNames.d.ts +1 -1
- package/api/types/BulkOutputDisposition.d.ts +9 -0
- package/api/types/BulkOutputDisposition.js +11 -0
- package/api/types/BulkResyncMode.d.ts +9 -0
- package/api/types/BulkResyncMode.js +11 -0
- package/api/types/BulkScheduleSyncMode.d.ts +1 -1
- package/api/types/BulkSchema.d.ts +2 -0
- package/api/types/BulkSchemaExecutionStatus.d.ts +2 -1
- package/api/types/BulkSchemaExecutionStatus.js +1 -0
- package/api/types/BulkSelectiveMode.d.ts +1 -1
- package/api/types/BulkSyncDest.d.ts +2 -0
- package/api/types/BulkSyncExecution.d.ts +1 -0
- package/api/types/BulkSyncExecutionStatus.d.ts +3 -0
- package/api/types/BulkSyncIngestionStatus.d.ts +14 -0
- package/{dist/version.js → api/types/BulkSyncIngestionStatus.js} +3 -2
- package/api/types/BulkSyncMode.d.ts +1 -1
- package/api/types/BulkSyncResponse.d.ts +2 -2
- package/api/types/BulkSyncSchemaExecutionStatus.d.ts +7 -0
- package/api/types/BulkSyncSource.d.ts +1 -0
- package/api/types/BulkSyncStatusResponse.d.ts +1 -0
- package/api/types/ConnectCardResponse.d.ts +1 -0
- package/api/types/ConnectionResponseSchema.d.ts +4 -2
- package/api/types/CreateSharedConnectionResponseSchema.d.ts +6 -0
- package/{version.js → api/types/CreateSharedConnectionResponseSchema.js} +3 -2
- package/api/types/Event.d.ts +4 -0
- package/api/types/EventBody.d.ts +1 -1
- package/api/types/ExecutionStatus.d.ts +1 -1
- package/api/types/FilterFieldReferenceType.d.ts +1 -1
- package/api/types/FilterFunction.d.ts +1 -1
- package/api/types/GetIdentityResponseSchema.d.ts +2 -0
- package/api/types/IngestionStatusLevel.d.ts +12 -0
- package/api/types/IngestionStatusLevel.js +11 -0
- package/api/types/JobResponse.d.ts +3 -0
- package/api/types/JsonschemaDefinitions.d.ts +1 -1
- package/api/types/JsonschemaForm.d.ts +1 -1
- package/api/types/LabelLabel.d.ts +1 -1
- package/api/types/ModelField.d.ts +1 -1
- package/api/types/ModelResponse.d.ts +2 -2
- package/api/types/ModelSyncMode.d.ts +2 -1
- package/api/types/ModelSyncMode.js +1 -0
- package/api/types/ModelSyncResponse.d.ts +2 -2
- package/api/types/ModelSyncSourceMetaResponse.d.ts +3 -0
- package/api/types/Organization.d.ts +5 -0
- package/api/types/{CommonOutputActor.d.ts → OutputActor.d.ts} +1 -1
- package/api/types/OutputActor.js +5 -0
- package/api/types/ScheduleFrequency.d.ts +1 -1
- package/api/types/SchemaIdentityFunction.d.ts +1 -1
- package/api/types/SourceMeta.d.ts +3 -0
- package/api/types/TypesType.d.ts +1 -1
- package/api/types/User.d.ts +6 -0
- package/api/types/UtilFieldType.d.ts +1 -1
- package/api/types/V2CreateSharedConnectionResponseEnvelope.d.ts +7 -0
- package/api/types/V2CreateSharedConnectionResponseEnvelope.js +5 -0
- package/api/types/V2EnricherConfiguration.d.ts +1 -1
- package/api/types/V2EnricherMapping.d.ts +1 -1
- package/api/types/V2ExecutionLogType.d.ts +1 -1
- package/api/types/V2OrderedMapStringGithubComInvopopJsonschemaSchema.d.ts +1 -1
- package/api/types/V2SampleRecord.d.ts +1 -1
- package/api/types/V2SchemaConfigurationFieldsItem.d.ts +1 -1
- package/api/types/V3BulkSyncSourceCapabilities.d.ts +6 -0
- package/api/types/V3BulkSyncSourceCapabilities.js +5 -0
- package/api/types/V4BulkSyncExecutionLogs.d.ts +6 -1
- package/api/types/V4BulkSyncScheduleApi.d.ts +5 -0
- package/api/types/V4ExportSyncLogsResponse.d.ts +1 -0
- package/api/types/V4GlobalErrorSubscribersResponse.d.ts +1 -0
- package/api/types/V4RunQueryResult.d.ts +2 -1
- package/api/types/V4UserFieldRequest.d.ts +4 -0
- package/api/types/WorkTaskStatus.d.ts +1 -1
- package/api/types/index.d.ts +13 -6
- package/api/types/index.js +13 -6
- package/core/auth/BearerToken.d.ts +1 -1
- package/core/fetcher/APIResponse.d.ts +1 -1
- package/core/fetcher/Fetcher.d.ts +3 -6
- package/core/fetcher/Fetcher.js +189 -20
- package/core/fetcher/Supplier.d.ts +1 -1
- package/core/fetcher/getHeader.js +2 -1
- package/core/runtime/runtime.d.ts +1 -2
- package/core/runtime/runtime.js +41 -52
- package/dist/Client.d.ts +14 -19
- package/dist/api/errors/BadRequestError.js +7 -17
- package/dist/api/errors/ConflictError.js +7 -17
- package/dist/api/errors/ForbiddenError.js +7 -17
- package/dist/api/errors/InternalServerError.js +7 -17
- package/dist/api/errors/NotFoundError.js +7 -17
- package/dist/api/errors/UnauthorizedError.js +7 -17
- package/dist/api/errors/UnprocessableEntityError.js +7 -17
- package/dist/api/resources/bulkSync/client/Client.d.ts +173 -24
- package/dist/api/resources/bulkSync/client/Client.js +339 -118
- package/dist/api/resources/bulkSync/client/requests/BulkSyncGetSourceRequest.d.ts +3 -0
- package/dist/api/resources/bulkSync/client/requests/BulkSyncListRequest.d.ts +3 -0
- package/dist/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +1 -1
- package/dist/api/resources/bulkSync/client/requests/StartBulkSyncRequest.d.ts +4 -0
- package/dist/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +1 -1
- package/dist/api/resources/bulkSync/resources/executions/client/Client.d.ts +77 -12
- package/dist/api/resources/bulkSync/resources/executions/client/Client.js +168 -66
- package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListRequest.d.ts +12 -0
- package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListStatusRequest.d.ts +3 -3
- package/dist/api/resources/bulkSync/resources/index.js +7 -17
- package/dist/api/resources/bulkSync/resources/schedules/client/Client.d.ts +44 -15
- package/dist/api/resources/bulkSync/resources/schedules/client/Client.js +116 -57
- package/dist/api/resources/bulkSync/resources/schedules/client/requests/CreateScheduleRequest.d.ts +1 -1
- package/dist/api/resources/bulkSync/resources/schedules/client/requests/UpdateScheduleRequest.d.ts +1 -1
- package/dist/api/resources/bulkSync/resources/schemas/client/Client.d.ts +71 -11
- package/dist/api/resources/bulkSync/resources/schemas/client/Client.js +150 -61
- package/dist/api/resources/bulkSync/resources/schemas/client/requests/BulkSyncSchemasRequest.d.ts +1 -0
- package/dist/api/resources/bulkSync/resources/schemas/client/requests/SchemasListRequest.d.ts +3 -0
- package/dist/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +7 -0
- package/dist/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItem.d.ts +1 -1
- package/dist/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItem.d.ts +1 -1
- package/dist/api/resources/connections/client/Client.d.ts +160 -12
- package/dist/api/resources/connections/client/Client.js +473 -86
- package/dist/api/resources/connections/client/requests/ApiRequest.d.ts +13 -0
- package/dist/api/resources/connections/client/requests/ApiRequest.js +5 -0
- package/dist/api/resources/connections/client/requests/GetConnectionTypeParameterValuesRequestSchema.d.ts +15 -0
- package/dist/api/resources/connections/client/requests/GetConnectionTypeParameterValuesRequestSchema.js +5 -0
- package/dist/api/resources/connections/client/requests/index.d.ts +2 -0
- package/dist/api/resources/events/client/Client.d.ts +20 -7
- package/dist/api/resources/events/client/Client.js +55 -33
- package/dist/api/resources/events/client/requests/EventsListRequest.d.ts +17 -2
- package/dist/api/resources/identity/client/Client.d.ts +11 -6
- package/dist/api/resources/identity/client/Client.js +31 -24
- package/dist/api/resources/index.js +7 -17
- package/dist/api/resources/jobs/client/Client.d.ts +15 -8
- package/dist/api/resources/jobs/client/Client.js +35 -26
- package/dist/api/resources/modelSync/client/Client.d.ts +110 -19
- package/dist/api/resources/modelSync/client/Client.js +287 -118
- package/dist/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +1 -1
- package/dist/api/resources/modelSync/client/requests/ModelSyncGetSourceFieldsRequest.d.ts +3 -0
- package/dist/api/resources/modelSync/client/requests/ModelSyncGetSourceRequest.d.ts +3 -0
- package/dist/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +1 -1
- package/dist/api/resources/modelSync/resources/executions/client/Client.d.ts +41 -12
- package/dist/api/resources/modelSync/resources/executions/client/Client.js +115 -56
- package/dist/api/resources/modelSync/resources/executions/client/requests/UpdateExecutionRequest.d.ts +1 -1
- package/dist/api/resources/modelSync/resources/index.js +7 -17
- package/dist/api/resources/modelSync/resources/targets/client/Client.d.ts +28 -11
- package/dist/api/resources/modelSync/resources/targets/client/Client.js +89 -49
- package/dist/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetFieldsRequest.d.ts +6 -0
- package/dist/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetRequest.d.ts +6 -0
- package/dist/api/resources/models/client/Client.d.ts +79 -8
- package/dist/api/resources/models/client/Client.js +214 -86
- package/dist/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.d.ts +3 -0
- package/dist/api/resources/notifications/client/Client.d.ts +13 -5
- package/dist/api/resources/notifications/client/Client.js +48 -31
- package/dist/api/resources/notifications/client/requests/V4GlobalErrorSubscribersRequest.d.ts +1 -0
- package/dist/api/resources/organization/client/Client.d.ts +31 -13
- package/dist/api/resources/organization/client/Client.js +109 -55
- package/dist/api/resources/organization/client/requests/CreateOrganizationRequestSchema.d.ts +6 -0
- package/dist/api/resources/organization/client/requests/UpdateOrganizationRequestSchema.d.ts +6 -0
- package/dist/api/resources/permissions/client/Client.d.ts +2 -7
- package/dist/api/resources/permissions/resources/index.js +7 -17
- package/dist/api/resources/permissions/resources/policies/client/Client.d.ts +33 -5
- package/dist/api/resources/permissions/resources/policies/client/Client.js +105 -47
- package/dist/api/resources/permissions/resources/roles/client/Client.d.ts +38 -5
- package/dist/api/resources/permissions/resources/roles/client/Client.js +110 -47
- package/dist/api/resources/queryRunner/client/Client.d.ts +26 -7
- package/dist/api/resources/queryRunner/client/Client.js +63 -35
- package/dist/api/resources/queryRunner/client/requests/QueryRunnerGetQueryRequest.d.ts +3 -0
- package/dist/api/resources/schemas/client/Client.d.ts +118 -23
- package/dist/api/resources/schemas/client/Client.js +232 -86
- package/dist/api/resources/schemas/client/requests/SetPrimaryKeysRequest.d.ts +1 -0
- package/dist/api/resources/schemas/client/requests/UpsertSchemaFieldRequest.d.ts +1 -0
- package/dist/api/resources/users/client/Client.d.ts +44 -16
- package/dist/api/resources/users/client/Client.js +133 -66
- package/dist/api/resources/users/client/requests/CreateUserRequestSchema.d.ts +4 -0
- package/dist/api/resources/users/client/requests/UpdateUserRequestSchema.d.ts +4 -0
- package/dist/api/resources/users/client/requests/UsersCreateApiKeyRequest.d.ts +3 -0
- package/dist/api/resources/webhooks/client/Client.d.ts +67 -21
- package/dist/api/resources/webhooks/client/Client.js +165 -75
- package/dist/api/types/ApiKeyResponse.d.ts +1 -0
- package/dist/api/types/BulkBulkSyncSchedule.d.ts +1 -0
- package/dist/api/types/BulkDiscover.d.ts +1 -1
- package/dist/api/types/BulkExecutionStatus.d.ts +1 -1
- package/dist/api/types/BulkFetchMode.d.ts +1 -1
- package/dist/api/types/BulkNormalizeNames.d.ts +1 -1
- package/dist/api/types/BulkOutputDisposition.d.ts +9 -0
- package/dist/api/types/BulkOutputDisposition.js +11 -0
- package/dist/api/types/BulkResyncMode.d.ts +9 -0
- package/dist/api/types/BulkResyncMode.js +11 -0
- package/dist/api/types/BulkScheduleSyncMode.d.ts +1 -1
- package/dist/api/types/BulkSchema.d.ts +2 -0
- package/dist/api/types/BulkSchemaExecutionStatus.d.ts +2 -1
- package/dist/api/types/BulkSchemaExecutionStatus.js +1 -0
- package/dist/api/types/BulkSelectiveMode.d.ts +1 -1
- package/dist/api/types/BulkSyncDest.d.ts +2 -0
- package/dist/api/types/BulkSyncExecution.d.ts +1 -0
- package/dist/api/types/BulkSyncExecutionStatus.d.ts +3 -0
- package/dist/api/types/BulkSyncIngestionStatus.d.ts +14 -0
- package/dist/api/types/BulkSyncIngestionStatus.js +5 -0
- package/dist/api/types/BulkSyncMode.d.ts +1 -1
- package/dist/api/types/BulkSyncResponse.d.ts +2 -2
- package/dist/api/types/BulkSyncSchemaExecutionStatus.d.ts +7 -0
- package/dist/api/types/BulkSyncSource.d.ts +1 -0
- package/dist/api/types/BulkSyncStatusResponse.d.ts +1 -0
- package/dist/api/types/ConnectCardResponse.d.ts +1 -0
- package/dist/api/types/ConnectionResponseSchema.d.ts +4 -2
- package/dist/api/types/CreateSharedConnectionResponseSchema.d.ts +6 -0
- package/dist/api/types/CreateSharedConnectionResponseSchema.js +5 -0
- package/dist/api/types/Event.d.ts +4 -0
- package/dist/api/types/EventBody.d.ts +1 -1
- package/dist/api/types/ExecutionStatus.d.ts +1 -1
- package/dist/api/types/FilterFieldReferenceType.d.ts +1 -1
- package/dist/api/types/FilterFunction.d.ts +1 -1
- package/dist/api/types/GetIdentityResponseSchema.d.ts +2 -0
- package/dist/api/types/IngestionStatusLevel.d.ts +12 -0
- package/dist/api/types/IngestionStatusLevel.js +11 -0
- package/dist/api/types/JobResponse.d.ts +3 -0
- package/dist/api/types/JsonschemaDefinitions.d.ts +1 -1
- package/dist/api/types/JsonschemaForm.d.ts +1 -1
- package/dist/api/types/LabelLabel.d.ts +1 -1
- package/dist/api/types/ModelField.d.ts +1 -1
- package/dist/api/types/ModelResponse.d.ts +2 -2
- package/dist/api/types/ModelSyncMode.d.ts +2 -1
- package/dist/api/types/ModelSyncMode.js +1 -0
- package/dist/api/types/ModelSyncResponse.d.ts +2 -2
- package/dist/api/types/ModelSyncSourceMetaResponse.d.ts +3 -0
- package/dist/api/types/Organization.d.ts +5 -0
- package/dist/api/types/{CommonOutputActor.d.ts → OutputActor.d.ts} +1 -1
- package/dist/api/types/OutputActor.js +5 -0
- package/dist/api/types/ScheduleFrequency.d.ts +1 -1
- package/dist/api/types/SchemaIdentityFunction.d.ts +1 -1
- package/dist/api/types/SourceMeta.d.ts +3 -0
- package/dist/api/types/TypesType.d.ts +1 -1
- package/dist/api/types/User.d.ts +6 -0
- package/dist/api/types/UtilFieldType.d.ts +1 -1
- package/dist/api/types/V2CreateSharedConnectionResponseEnvelope.d.ts +7 -0
- package/dist/api/types/V2CreateSharedConnectionResponseEnvelope.js +5 -0
- package/dist/api/types/V2EnricherConfiguration.d.ts +1 -1
- package/dist/api/types/V2EnricherMapping.d.ts +1 -1
- package/dist/api/types/V2ExecutionLogType.d.ts +1 -1
- package/dist/api/types/V2OrderedMapStringGithubComInvopopJsonschemaSchema.d.ts +1 -1
- package/dist/api/types/V2SampleRecord.d.ts +1 -1
- package/dist/api/types/V2SchemaConfigurationFieldsItem.d.ts +1 -1
- package/dist/api/types/V3BulkSyncSourceCapabilities.d.ts +6 -0
- package/dist/api/types/V3BulkSyncSourceCapabilities.js +5 -0
- package/dist/api/types/V4BulkSyncExecutionLogs.d.ts +6 -1
- package/dist/api/types/V4BulkSyncScheduleApi.d.ts +5 -0
- package/dist/api/types/V4ExportSyncLogsResponse.d.ts +1 -0
- package/dist/api/types/V4GlobalErrorSubscribersResponse.d.ts +1 -0
- package/dist/api/types/V4RunQueryResult.d.ts +2 -1
- package/dist/api/types/V4UserFieldRequest.d.ts +4 -0
- package/dist/api/types/WorkTaskStatus.d.ts +1 -1
- package/dist/api/types/index.d.ts +13 -6
- package/dist/api/types/index.js +13 -6
- package/dist/core/auth/BearerToken.d.ts +1 -1
- package/dist/core/fetcher/APIResponse.d.ts +1 -1
- package/dist/core/fetcher/Fetcher.d.ts +3 -6
- package/dist/core/fetcher/Fetcher.js +189 -20
- package/dist/core/fetcher/Supplier.d.ts +1 -1
- package/dist/core/fetcher/getHeader.js +2 -1
- package/dist/core/runtime/runtime.d.ts +1 -2
- package/dist/core/runtime/runtime.js +41 -52
- package/dist/environments.d.ts +1 -1
- package/dist/errors/PolytomicError.js +1 -2
- package/dist/errors/PolytomicTimeoutError.d.ts +1 -1
- package/dist/errors/PolytomicTimeoutError.js +2 -2
- package/dist/index.js +7 -17
- package/environments.d.ts +1 -1
- package/errors/PolytomicError.js +1 -2
- package/errors/PolytomicTimeoutError.d.ts +1 -1
- package/errors/PolytomicTimeoutError.js +2 -2
- package/index.js +7 -17
- package/{jest.config.mjs → jest.config.js} +1 -4
- package/package.json +17 -18
- package/core/fetcher/createRequestUrl.d.ts +0 -1
- package/core/fetcher/createRequestUrl.js +0 -12
- package/core/fetcher/getFetchFn.d.ts +0 -4
- package/core/fetcher/getFetchFn.js +0 -68
- package/core/fetcher/getRequestBody.d.ts +0 -7
- package/core/fetcher/getRequestBody.js +0 -23
- package/core/fetcher/getResponseBody.d.ts +0 -1
- package/core/fetcher/getResponseBody.js +0 -54
- package/core/fetcher/makeRequest.d.ts +0 -1
- package/core/fetcher/makeRequest.js +0 -42
- package/core/fetcher/requestWithRetries.d.ts +0 -1
- package/core/fetcher/requestWithRetries.js +0 -40
- package/core/fetcher/signals.d.ts +0 -11
- package/core/fetcher/signals.js +0 -36
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -21
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -126
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -59
- package/core/json.d.ts +0 -15
- package/core/json.js +0 -24
- package/dist/core/fetcher/createRequestUrl.d.ts +0 -1
- package/dist/core/fetcher/createRequestUrl.js +0 -12
- package/dist/core/fetcher/getFetchFn.d.ts +0 -4
- package/dist/core/fetcher/getFetchFn.js +0 -68
- package/dist/core/fetcher/getRequestBody.d.ts +0 -7
- package/dist/core/fetcher/getRequestBody.js +0 -23
- package/dist/core/fetcher/getResponseBody.d.ts +0 -1
- package/dist/core/fetcher/getResponseBody.js +0 -54
- package/dist/core/fetcher/makeRequest.d.ts +0 -1
- package/dist/core/fetcher/makeRequest.js +0 -42
- package/dist/core/fetcher/requestWithRetries.d.ts +0 -1
- package/dist/core/fetcher/requestWithRetries.js +0 -40
- package/dist/core/fetcher/signals.d.ts +0 -11
- package/dist/core/fetcher/signals.js +0 -36
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -21
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -126
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -59
- package/dist/core/json.d.ts +0 -15
- package/dist/core/json.js +0 -24
- package/dist/version.d.ts +0 -1
- package/reference.md +0 -6547
- package/scripts/rename-to-esm-files.js +0 -115
- package/version.d.ts +0 -1
- /package/api/{types/CommonOutputActor.js → resources/connections/client/requests/ApiRequest.js} +0 -0
- /package/{dist/api/types/CommonOutputActor.js → api/resources/connections/client/requests/GetConnectionTypeParameterValuesRequestSchema.js} +0 -0
|
@@ -18,23 +18,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
18
18
|
}) : function(o, v) {
|
|
19
19
|
o["default"] = v;
|
|
20
20
|
});
|
|
21
|
-
var __importStar = (this && this.__importStar) ||
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
38
28
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
29
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
30
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -59,6 +49,11 @@ class Notifications {
|
|
|
59
49
|
this._options = _options;
|
|
60
50
|
}
|
|
61
51
|
/**
|
|
52
|
+
* Returns the list of email addresses subscribed to global sync error notifications for the caller's organization.
|
|
53
|
+
*
|
|
54
|
+
* To update the subscriber list, use
|
|
55
|
+
* [`PUT /api/notifications/global-error-subscribers`](../../../api-reference/notifications/set-global-error-subscribers).
|
|
56
|
+
*
|
|
62
57
|
* @param {Notifications.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
58
|
*
|
|
64
59
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
@@ -68,16 +63,23 @@ class Notifications {
|
|
|
68
63
|
* await client.notifications.getGlobalErrorSubscribers()
|
|
69
64
|
*/
|
|
70
65
|
getGlobalErrorSubscribers(requestOptions) {
|
|
66
|
+
var _a;
|
|
71
67
|
return __awaiter(this, void 0, void 0, function* () {
|
|
72
|
-
var _a, _b;
|
|
73
68
|
const _response = yield core.fetcher({
|
|
74
|
-
url: (0, url_join_1.default)((
|
|
69
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, "api/notifications/global-error-subscribers"),
|
|
75
70
|
method: "GET",
|
|
76
|
-
headers:
|
|
71
|
+
headers: {
|
|
72
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
73
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
77
74
|
? yield core.Supplier.get(this._options.version)
|
|
78
|
-
: undefined,
|
|
75
|
+
: undefined,
|
|
76
|
+
"X-Fern-Language": "JavaScript",
|
|
77
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
78
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
79
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
80
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
81
|
+
},
|
|
79
82
|
contentType: "application/json",
|
|
80
|
-
requestType: "json",
|
|
81
83
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
82
84
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
83
85
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -105,7 +107,7 @@ class Notifications {
|
|
|
105
107
|
body: _response.error.rawBody,
|
|
106
108
|
});
|
|
107
109
|
case "timeout":
|
|
108
|
-
throw new errors.PolytomicTimeoutError(
|
|
110
|
+
throw new errors.PolytomicTimeoutError();
|
|
109
111
|
case "unknown":
|
|
110
112
|
throw new errors.PolytomicError({
|
|
111
113
|
message: _response.error.errorMessage,
|
|
@@ -114,6 +116,14 @@ class Notifications {
|
|
|
114
116
|
});
|
|
115
117
|
}
|
|
116
118
|
/**
|
|
119
|
+
* Replaces the list of email addresses subscribed to global sync error notifications for the caller's organization.
|
|
120
|
+
*
|
|
121
|
+
* This is a **full replacement** — the request body becomes the complete
|
|
122
|
+
* subscriber list. To add or remove a single address without affecting others,
|
|
123
|
+
* fetch the current list with
|
|
124
|
+
* [`GET /api/notifications/global-error-subscribers`](../../../api-reference/notifications/get-global-error-subscribers), apply your change,
|
|
125
|
+
* and send the modified list back.
|
|
126
|
+
*
|
|
117
127
|
* @param {Polytomic.V4GlobalErrorSubscribersRequest} request
|
|
118
128
|
* @param {Notifications.RequestOptions} requestOptions - Request-specific configuration.
|
|
119
129
|
*
|
|
@@ -124,17 +134,24 @@ class Notifications {
|
|
|
124
134
|
* @example
|
|
125
135
|
* await client.notifications.setGlobalErrorSubscribers()
|
|
126
136
|
*/
|
|
127
|
-
setGlobalErrorSubscribers() {
|
|
128
|
-
|
|
129
|
-
|
|
137
|
+
setGlobalErrorSubscribers(request = {}, requestOptions) {
|
|
138
|
+
var _a;
|
|
139
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
130
140
|
const _response = yield core.fetcher({
|
|
131
|
-
url: (0, url_join_1.default)((
|
|
141
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, "api/notifications/global-error-subscribers"),
|
|
132
142
|
method: "PUT",
|
|
133
|
-
headers:
|
|
143
|
+
headers: {
|
|
144
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
145
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
134
146
|
? yield core.Supplier.get(this._options.version)
|
|
135
|
-
: undefined,
|
|
147
|
+
: undefined,
|
|
148
|
+
"X-Fern-Language": "JavaScript",
|
|
149
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
150
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
151
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
152
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
153
|
+
},
|
|
136
154
|
contentType: "application/json",
|
|
137
|
-
requestType: "json",
|
|
138
155
|
body: request,
|
|
139
156
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
140
157
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -165,7 +182,7 @@ class Notifications {
|
|
|
165
182
|
body: _response.error.rawBody,
|
|
166
183
|
});
|
|
167
184
|
case "timeout":
|
|
168
|
-
throw new errors.PolytomicTimeoutError(
|
|
185
|
+
throw new errors.PolytomicTimeoutError();
|
|
169
186
|
case "unknown":
|
|
170
187
|
throw new errors.PolytomicError({
|
|
171
188
|
message: _response.error.errorMessage,
|
|
@@ -7,10 +7,7 @@ import * as Polytomic from "../../../index";
|
|
|
7
7
|
export declare namespace Organization {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.PolytomicEnvironment | string>;
|
|
10
|
-
/** Specify a custom URL to connect the client to. */
|
|
11
|
-
baseUrl?: core.Supplier<string>;
|
|
12
10
|
token: core.Supplier<core.BearerToken>;
|
|
13
|
-
/** Override the X-Polytomic-Version header */
|
|
14
11
|
version?: core.Supplier<string | undefined>;
|
|
15
12
|
}
|
|
16
13
|
interface RequestOptions {
|
|
@@ -22,17 +19,25 @@ export declare namespace Organization {
|
|
|
22
19
|
abortSignal?: AbortSignal;
|
|
23
20
|
/** Override the X-Polytomic-Version header */
|
|
24
21
|
version?: string | undefined;
|
|
25
|
-
/** Additional headers to include in the request. */
|
|
26
|
-
headers?: Record<string, string>;
|
|
27
22
|
}
|
|
28
23
|
}
|
|
29
24
|
export declare class Organization {
|
|
30
25
|
protected readonly _options: Organization.Options;
|
|
31
26
|
constructor(_options: Organization.Options);
|
|
32
27
|
/**
|
|
28
|
+
* Lists organizations accessible to the caller.
|
|
29
|
+
*
|
|
33
30
|
* > 🚧 Requires partner key
|
|
34
31
|
* >
|
|
35
|
-
* >
|
|
32
|
+
* > This endpoint is only accessible using [partner keys](../../guides/obtaining-api-keys#partner-keys).
|
|
33
|
+
*
|
|
34
|
+
* The result depends on the caller type:
|
|
35
|
+
*
|
|
36
|
+
* - User-scoped callers receive their current organization.
|
|
37
|
+
* - Partner callers receive the organizations available within their partner
|
|
38
|
+
* scope.
|
|
39
|
+
* - Deployment-level callers may receive a broader organization list, depending
|
|
40
|
+
* on deployment configuration.
|
|
36
41
|
*
|
|
37
42
|
* @param {Organization.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
43
|
*
|
|
@@ -44,9 +49,11 @@ export declare class Organization {
|
|
|
44
49
|
*/
|
|
45
50
|
list(requestOptions?: Organization.RequestOptions): Promise<Polytomic.OrganizationsEnvelope>;
|
|
46
51
|
/**
|
|
52
|
+
* Creates a new organization under the calling partner account, optionally configuring SSO or OIDC at creation time.
|
|
53
|
+
*
|
|
47
54
|
* > 🚧 Requires partner key
|
|
48
55
|
* >
|
|
49
|
-
* >
|
|
56
|
+
* > This endpoint is only accessible using [partner keys](../../guides/obtaining-api-keys#partner-keys).
|
|
50
57
|
*
|
|
51
58
|
* @param {Polytomic.CreateOrganizationRequestSchema} request
|
|
52
59
|
* @param {Organization.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -63,14 +70,17 @@ export declare class Organization {
|
|
|
63
70
|
*/
|
|
64
71
|
create(request: Polytomic.CreateOrganizationRequestSchema, requestOptions?: Organization.RequestOptions): Promise<Polytomic.OrganizationEnvelope>;
|
|
65
72
|
/**
|
|
73
|
+
* Returns a single organization by ID.
|
|
74
|
+
*
|
|
66
75
|
* > 🚧 Requires partner key
|
|
67
76
|
* >
|
|
68
|
-
* >
|
|
77
|
+
* > This endpoint is only accessible using [partner keys](../../../guides/obtaining-api-keys#partner-keys).
|
|
69
78
|
*
|
|
70
|
-
* @param {string} id
|
|
79
|
+
* @param {string} id - Unique identifier of the organization.
|
|
71
80
|
* @param {Organization.RequestOptions} requestOptions - Request-specific configuration.
|
|
72
81
|
*
|
|
73
82
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
83
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
74
84
|
* @throws {@link Polytomic.NotFoundError}
|
|
75
85
|
*
|
|
76
86
|
* @example
|
|
@@ -78,15 +88,18 @@ export declare class Organization {
|
|
|
78
88
|
*/
|
|
79
89
|
get(id: string, requestOptions?: Organization.RequestOptions): Promise<Polytomic.OrganizationEnvelope>;
|
|
80
90
|
/**
|
|
91
|
+
* Updates an organization's configuration.
|
|
92
|
+
*
|
|
81
93
|
* > 🚧 Requires partner key
|
|
82
94
|
* >
|
|
83
|
-
* >
|
|
95
|
+
* > This endpoint is only accessible using [partner keys](../../../guides/obtaining-api-keys#partner-keys).
|
|
84
96
|
*
|
|
85
|
-
* @param {string} id
|
|
97
|
+
* @param {string} id - Unique identifier of the organization to update.
|
|
86
98
|
* @param {Polytomic.UpdateOrganizationRequestSchema} request
|
|
87
99
|
* @param {Organization.RequestOptions} requestOptions - Request-specific configuration.
|
|
88
100
|
*
|
|
89
101
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
102
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
90
103
|
* @throws {@link Polytomic.ConflictError}
|
|
91
104
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
92
105
|
* @throws {@link Polytomic.InternalServerError}
|
|
@@ -98,14 +111,19 @@ export declare class Organization {
|
|
|
98
111
|
*/
|
|
99
112
|
update(id: string, request: Polytomic.UpdateOrganizationRequestSchema, requestOptions?: Organization.RequestOptions): Promise<Polytomic.OrganizationEnvelope>;
|
|
100
113
|
/**
|
|
114
|
+
* Deletes an organization.
|
|
115
|
+
*
|
|
101
116
|
* > 🚧 Requires partner key
|
|
102
117
|
* >
|
|
103
|
-
* >
|
|
118
|
+
* > This endpoint is only accessible using [partner keys](../../../guides/obtaining-api-keys#partner-keys).
|
|
119
|
+
*
|
|
120
|
+
* Partner callers cannot delete their own owner organization.
|
|
104
121
|
*
|
|
105
|
-
* @param {string} id
|
|
122
|
+
* @param {string} id - Unique identifier of the organization.
|
|
106
123
|
* @param {Organization.RequestOptions} requestOptions - Request-specific configuration.
|
|
107
124
|
*
|
|
108
125
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
126
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
109
127
|
* @throws {@link Polytomic.NotFoundError}
|
|
110
128
|
* @throws {@link Polytomic.InternalServerError}
|
|
111
129
|
*
|
|
@@ -18,23 +18,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
18
18
|
}) : function(o, v) {
|
|
19
19
|
o["default"] = v;
|
|
20
20
|
});
|
|
21
|
-
var __importStar = (this && this.__importStar) ||
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
38
28
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
29
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
30
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -59,9 +49,19 @@ class Organization {
|
|
|
59
49
|
this._options = _options;
|
|
60
50
|
}
|
|
61
51
|
/**
|
|
52
|
+
* Lists organizations accessible to the caller.
|
|
53
|
+
*
|
|
62
54
|
* > 🚧 Requires partner key
|
|
63
55
|
* >
|
|
64
|
-
* >
|
|
56
|
+
* > This endpoint is only accessible using [partner keys](../../guides/obtaining-api-keys#partner-keys).
|
|
57
|
+
*
|
|
58
|
+
* The result depends on the caller type:
|
|
59
|
+
*
|
|
60
|
+
* - User-scoped callers receive their current organization.
|
|
61
|
+
* - Partner callers receive the organizations available within their partner
|
|
62
|
+
* scope.
|
|
63
|
+
* - Deployment-level callers may receive a broader organization list, depending
|
|
64
|
+
* on deployment configuration.
|
|
65
65
|
*
|
|
66
66
|
* @param {Organization.RequestOptions} requestOptions - Request-specific configuration.
|
|
67
67
|
*
|
|
@@ -72,16 +72,23 @@ class Organization {
|
|
|
72
72
|
* await client.organization.list()
|
|
73
73
|
*/
|
|
74
74
|
list(requestOptions) {
|
|
75
|
+
var _a;
|
|
75
76
|
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
-
var _a, _b;
|
|
77
77
|
const _response = yield core.fetcher({
|
|
78
|
-
url: (0, url_join_1.default)((
|
|
78
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, "api/organizations"),
|
|
79
79
|
method: "GET",
|
|
80
|
-
headers:
|
|
80
|
+
headers: {
|
|
81
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
82
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
81
83
|
? yield core.Supplier.get(this._options.version)
|
|
82
|
-
: undefined,
|
|
84
|
+
: undefined,
|
|
85
|
+
"X-Fern-Language": "JavaScript",
|
|
86
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
87
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
88
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
89
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
90
|
+
},
|
|
83
91
|
contentType: "application/json",
|
|
84
|
-
requestType: "json",
|
|
85
92
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
86
93
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
87
94
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -109,7 +116,7 @@ class Organization {
|
|
|
109
116
|
body: _response.error.rawBody,
|
|
110
117
|
});
|
|
111
118
|
case "timeout":
|
|
112
|
-
throw new errors.PolytomicTimeoutError(
|
|
119
|
+
throw new errors.PolytomicTimeoutError();
|
|
113
120
|
case "unknown":
|
|
114
121
|
throw new errors.PolytomicError({
|
|
115
122
|
message: _response.error.errorMessage,
|
|
@@ -118,9 +125,11 @@ class Organization {
|
|
|
118
125
|
});
|
|
119
126
|
}
|
|
120
127
|
/**
|
|
128
|
+
* Creates a new organization under the calling partner account, optionally configuring SSO or OIDC at creation time.
|
|
129
|
+
*
|
|
121
130
|
* > 🚧 Requires partner key
|
|
122
131
|
* >
|
|
123
|
-
* >
|
|
132
|
+
* > This endpoint is only accessible using [partner keys](../../guides/obtaining-api-keys#partner-keys).
|
|
124
133
|
*
|
|
125
134
|
* @param {Polytomic.CreateOrganizationRequestSchema} request
|
|
126
135
|
* @param {Organization.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -136,16 +145,23 @@ class Organization {
|
|
|
136
145
|
* })
|
|
137
146
|
*/
|
|
138
147
|
create(request, requestOptions) {
|
|
148
|
+
var _a;
|
|
139
149
|
return __awaiter(this, void 0, void 0, function* () {
|
|
140
|
-
var _a, _b;
|
|
141
150
|
const _response = yield core.fetcher({
|
|
142
|
-
url: (0, url_join_1.default)((
|
|
151
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, "api/organizations"),
|
|
143
152
|
method: "POST",
|
|
144
|
-
headers:
|
|
153
|
+
headers: {
|
|
154
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
155
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
145
156
|
? yield core.Supplier.get(this._options.version)
|
|
146
|
-
: undefined,
|
|
157
|
+
: undefined,
|
|
158
|
+
"X-Fern-Language": "JavaScript",
|
|
159
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
160
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
161
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
162
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
163
|
+
},
|
|
147
164
|
contentType: "application/json",
|
|
148
|
-
requestType: "json",
|
|
149
165
|
body: request,
|
|
150
166
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
151
167
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -178,7 +194,7 @@ class Organization {
|
|
|
178
194
|
body: _response.error.rawBody,
|
|
179
195
|
});
|
|
180
196
|
case "timeout":
|
|
181
|
-
throw new errors.PolytomicTimeoutError(
|
|
197
|
+
throw new errors.PolytomicTimeoutError();
|
|
182
198
|
case "unknown":
|
|
183
199
|
throw new errors.PolytomicError({
|
|
184
200
|
message: _response.error.errorMessage,
|
|
@@ -187,30 +203,40 @@ class Organization {
|
|
|
187
203
|
});
|
|
188
204
|
}
|
|
189
205
|
/**
|
|
206
|
+
* Returns a single organization by ID.
|
|
207
|
+
*
|
|
190
208
|
* > 🚧 Requires partner key
|
|
191
209
|
* >
|
|
192
|
-
* >
|
|
210
|
+
* > This endpoint is only accessible using [partner keys](../../../guides/obtaining-api-keys#partner-keys).
|
|
193
211
|
*
|
|
194
|
-
* @param {string} id
|
|
212
|
+
* @param {string} id - Unique identifier of the organization.
|
|
195
213
|
* @param {Organization.RequestOptions} requestOptions - Request-specific configuration.
|
|
196
214
|
*
|
|
197
215
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
216
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
198
217
|
* @throws {@link Polytomic.NotFoundError}
|
|
199
218
|
*
|
|
200
219
|
* @example
|
|
201
220
|
* await client.organization.get("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
202
221
|
*/
|
|
203
222
|
get(id, requestOptions) {
|
|
223
|
+
var _a;
|
|
204
224
|
return __awaiter(this, void 0, void 0, function* () {
|
|
205
|
-
var _a, _b;
|
|
206
225
|
const _response = yield core.fetcher({
|
|
207
|
-
url: (0, url_join_1.default)((
|
|
226
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/organizations/${encodeURIComponent(id)}`),
|
|
208
227
|
method: "GET",
|
|
209
|
-
headers:
|
|
228
|
+
headers: {
|
|
229
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
230
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
210
231
|
? yield core.Supplier.get(this._options.version)
|
|
211
|
-
: undefined,
|
|
232
|
+
: undefined,
|
|
233
|
+
"X-Fern-Language": "JavaScript",
|
|
234
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
235
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
236
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
237
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
238
|
+
},
|
|
212
239
|
contentType: "application/json",
|
|
213
|
-
requestType: "json",
|
|
214
240
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
215
241
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
216
242
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -222,6 +248,8 @@ class Organization {
|
|
|
222
248
|
switch (_response.error.statusCode) {
|
|
223
249
|
case 401:
|
|
224
250
|
throw new Polytomic.UnauthorizedError(_response.error.body);
|
|
251
|
+
case 403:
|
|
252
|
+
throw new Polytomic.ForbiddenError(_response.error.body);
|
|
225
253
|
case 404:
|
|
226
254
|
throw new Polytomic.NotFoundError(_response.error.body);
|
|
227
255
|
default:
|
|
@@ -238,7 +266,7 @@ class Organization {
|
|
|
238
266
|
body: _response.error.rawBody,
|
|
239
267
|
});
|
|
240
268
|
case "timeout":
|
|
241
|
-
throw new errors.PolytomicTimeoutError(
|
|
269
|
+
throw new errors.PolytomicTimeoutError();
|
|
242
270
|
case "unknown":
|
|
243
271
|
throw new errors.PolytomicError({
|
|
244
272
|
message: _response.error.errorMessage,
|
|
@@ -247,15 +275,18 @@ class Organization {
|
|
|
247
275
|
});
|
|
248
276
|
}
|
|
249
277
|
/**
|
|
278
|
+
* Updates an organization's configuration.
|
|
279
|
+
*
|
|
250
280
|
* > 🚧 Requires partner key
|
|
251
281
|
* >
|
|
252
|
-
* >
|
|
282
|
+
* > This endpoint is only accessible using [partner keys](../../../guides/obtaining-api-keys#partner-keys).
|
|
253
283
|
*
|
|
254
|
-
* @param {string} id
|
|
284
|
+
* @param {string} id - Unique identifier of the organization to update.
|
|
255
285
|
* @param {Polytomic.UpdateOrganizationRequestSchema} request
|
|
256
286
|
* @param {Organization.RequestOptions} requestOptions - Request-specific configuration.
|
|
257
287
|
*
|
|
258
288
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
289
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
259
290
|
* @throws {@link Polytomic.ConflictError}
|
|
260
291
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
261
292
|
* @throws {@link Polytomic.InternalServerError}
|
|
@@ -266,16 +297,23 @@ class Organization {
|
|
|
266
297
|
* })
|
|
267
298
|
*/
|
|
268
299
|
update(id, request, requestOptions) {
|
|
300
|
+
var _a;
|
|
269
301
|
return __awaiter(this, void 0, void 0, function* () {
|
|
270
|
-
var _a, _b;
|
|
271
302
|
const _response = yield core.fetcher({
|
|
272
|
-
url: (0, url_join_1.default)((
|
|
303
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/organizations/${encodeURIComponent(id)}`),
|
|
273
304
|
method: "PUT",
|
|
274
|
-
headers:
|
|
305
|
+
headers: {
|
|
306
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
307
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
275
308
|
? yield core.Supplier.get(this._options.version)
|
|
276
|
-
: undefined,
|
|
309
|
+
: undefined,
|
|
310
|
+
"X-Fern-Language": "JavaScript",
|
|
311
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
312
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
313
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
314
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
315
|
+
},
|
|
277
316
|
contentType: "application/json",
|
|
278
|
-
requestType: "json",
|
|
279
317
|
body: request,
|
|
280
318
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
281
319
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -288,6 +326,8 @@ class Organization {
|
|
|
288
326
|
switch (_response.error.statusCode) {
|
|
289
327
|
case 401:
|
|
290
328
|
throw new Polytomic.UnauthorizedError(_response.error.body);
|
|
329
|
+
case 403:
|
|
330
|
+
throw new Polytomic.ForbiddenError(_response.error.body);
|
|
291
331
|
case 409:
|
|
292
332
|
throw new Polytomic.ConflictError(_response.error.body);
|
|
293
333
|
case 422:
|
|
@@ -308,7 +348,7 @@ class Organization {
|
|
|
308
348
|
body: _response.error.rawBody,
|
|
309
349
|
});
|
|
310
350
|
case "timeout":
|
|
311
|
-
throw new errors.PolytomicTimeoutError(
|
|
351
|
+
throw new errors.PolytomicTimeoutError();
|
|
312
352
|
case "unknown":
|
|
313
353
|
throw new errors.PolytomicError({
|
|
314
354
|
message: _response.error.errorMessage,
|
|
@@ -317,14 +357,19 @@ class Organization {
|
|
|
317
357
|
});
|
|
318
358
|
}
|
|
319
359
|
/**
|
|
360
|
+
* Deletes an organization.
|
|
361
|
+
*
|
|
320
362
|
* > 🚧 Requires partner key
|
|
321
363
|
* >
|
|
322
|
-
* >
|
|
364
|
+
* > This endpoint is only accessible using [partner keys](../../../guides/obtaining-api-keys#partner-keys).
|
|
365
|
+
*
|
|
366
|
+
* Partner callers cannot delete their own owner organization.
|
|
323
367
|
*
|
|
324
|
-
* @param {string} id
|
|
368
|
+
* @param {string} id - Unique identifier of the organization.
|
|
325
369
|
* @param {Organization.RequestOptions} requestOptions - Request-specific configuration.
|
|
326
370
|
*
|
|
327
371
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
372
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
328
373
|
* @throws {@link Polytomic.NotFoundError}
|
|
329
374
|
* @throws {@link Polytomic.InternalServerError}
|
|
330
375
|
*
|
|
@@ -332,16 +377,23 @@ class Organization {
|
|
|
332
377
|
* await client.organization.remove("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
333
378
|
*/
|
|
334
379
|
remove(id, requestOptions) {
|
|
380
|
+
var _a;
|
|
335
381
|
return __awaiter(this, void 0, void 0, function* () {
|
|
336
|
-
var _a, _b;
|
|
337
382
|
const _response = yield core.fetcher({
|
|
338
|
-
url: (0, url_join_1.default)((
|
|
383
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/organizations/${encodeURIComponent(id)}`),
|
|
339
384
|
method: "DELETE",
|
|
340
|
-
headers:
|
|
385
|
+
headers: {
|
|
386
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
387
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
341
388
|
? yield core.Supplier.get(this._options.version)
|
|
342
|
-
: undefined,
|
|
389
|
+
: undefined,
|
|
390
|
+
"X-Fern-Language": "JavaScript",
|
|
391
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
392
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
393
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
394
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
395
|
+
},
|
|
343
396
|
contentType: "application/json",
|
|
344
|
-
requestType: "json",
|
|
345
397
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
346
398
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
347
399
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -353,6 +405,8 @@ class Organization {
|
|
|
353
405
|
switch (_response.error.statusCode) {
|
|
354
406
|
case 401:
|
|
355
407
|
throw new Polytomic.UnauthorizedError(_response.error.body);
|
|
408
|
+
case 403:
|
|
409
|
+
throw new Polytomic.ForbiddenError(_response.error.body);
|
|
356
410
|
case 404:
|
|
357
411
|
throw new Polytomic.NotFoundError(_response.error.body);
|
|
358
412
|
case 500:
|
|
@@ -371,7 +425,7 @@ class Organization {
|
|
|
371
425
|
body: _response.error.rawBody,
|
|
372
426
|
});
|
|
373
427
|
case "timeout":
|
|
374
|
-
throw new errors.PolytomicTimeoutError(
|
|
428
|
+
throw new errors.PolytomicTimeoutError();
|
|
375
429
|
case "unknown":
|
|
376
430
|
throw new errors.PolytomicError({
|
|
377
431
|
message: _response.error.errorMessage,
|
package/dist/api/resources/organization/client/requests/CreateOrganizationRequestSchema.d.ts
CHANGED
|
@@ -8,10 +8,16 @@
|
|
|
8
8
|
* }
|
|
9
9
|
*/
|
|
10
10
|
export interface CreateOrganizationRequestSchema {
|
|
11
|
+
/** OIDC client ID issued by the identity provider. */
|
|
11
12
|
client_id?: string;
|
|
13
|
+
/** OIDC client secret issued by the identity provider. Write-only; never returned in responses. */
|
|
12
14
|
client_secret?: string;
|
|
15
|
+
/** OIDC issuer URL for organizations using OpenID Connect single sign-on. */
|
|
13
16
|
issuer?: string;
|
|
17
|
+
/** Human-readable name of the organization. Must be unique across the partner account. */
|
|
14
18
|
name: string;
|
|
19
|
+
/** Email domain used to match users to this organization during SSO sign-in. */
|
|
15
20
|
sso_domain?: string;
|
|
21
|
+
/** WorkOS organization identifier linking this organization to its SAML/SSO configuration. */
|
|
16
22
|
sso_org_id?: string;
|
|
17
23
|
}
|
package/dist/api/resources/organization/client/requests/UpdateOrganizationRequestSchema.d.ts
CHANGED
|
@@ -8,10 +8,16 @@
|
|
|
8
8
|
* }
|
|
9
9
|
*/
|
|
10
10
|
export interface UpdateOrganizationRequestSchema {
|
|
11
|
+
/** OIDC client ID issued by the identity provider. */
|
|
11
12
|
client_id?: string;
|
|
13
|
+
/** OIDC client secret issued by the identity provider. Write-only; never returned in responses. */
|
|
12
14
|
client_secret?: string;
|
|
15
|
+
/** OIDC issuer URL for organizations using OpenID Connect single sign-on. */
|
|
13
16
|
issuer?: string;
|
|
17
|
+
/** Human-readable name of the organization. Must be unique across the partner account. */
|
|
14
18
|
name: string;
|
|
19
|
+
/** Email domain used to match users to this organization during SSO sign-in. */
|
|
15
20
|
sso_domain?: string;
|
|
21
|
+
/** WorkOS organization identifier linking this organization to its SAML/SSO configuration. */
|
|
16
22
|
sso_org_id?: string;
|
|
17
23
|
}
|