diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 1a55fdb..cf13c1c 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -28,30 +28,3 @@ jobs:
- name: Compile
run: yarn && yarn test
-
- publish:
- needs: [ compile, test ]
- if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
- runs-on: ubuntu-latest
- steps:
- - name: Checkout repo
- uses: actions/checkout@v3
- - name: Set up node
- uses: actions/setup-node@v3
- - name: Install dependencies
- run: yarn install
- - name: Build
- run: yarn build
-
- - name: Publish to npm
- run: |
- npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
- if [[ ${GITHUB_REF} == *alpha* ]]; then
- npm publish --access public --tag alpha
- elif [[ ${GITHUB_REF} == *beta* ]]; then
- npm publish --access public --tag beta
- else
- npm publish --access public
- fi
- env:
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
\ No newline at end of file
diff --git a/package.json b/package.json
index 73b28e8..b349e43 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
- "name": "polytomic",
- "version": "1.15.2",
+ "name": "",
+ "version": "0.0.135",
"private": false,
"repository": "https://github.com/polytomic/polytomic-typescript",
"license": "MIT",
diff --git a/reference.md b/reference.md
index b13ce4c..7bc7684 100644
--- a/reference.md
+++ b/reference.md
@@ -15,9 +15,7 @@
```typescript
-await client.bulkSync.list({
- active: true,
-});
+await client.bulkSync.list();
```
@@ -106,15 +104,37 @@ to see configurations for particular integrations (for example, [here](https://a
```typescript
await client.bulkSync.create({
+ active: undefined,
+ automatically_add_new_fields: undefined,
+ automatically_add_new_objects: undefined,
+ concurrency_limit: undefined,
+ data_cutoff_timestamp: undefined,
destination_configuration: {
- schema: "my_schema",
+ destination_configuration: {
+ key: "value",
+ },
},
- destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
- name: "My Bulk Sync",
+ destination_connection_id: "destination_connection_id",
+ disable_record_timestamps: undefined,
+ discover: undefined,
+ mode: null,
+ name: "name",
+ normalize_names: undefined,
+ organization_id: undefined,
+ policies: undefined,
+ resync_concurrency_limit: undefined,
schedule: {
+ day_of_month: undefined,
+ day_of_week: undefined,
frequency: "manual",
+ hour: undefined,
+ minute: undefined,
+ month: undefined,
+ multi: undefined,
},
- source_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
+ schemas: undefined,
+ source_configuration: undefined,
+ source_connection_id: "source_connection_id",
});
```
@@ -163,9 +183,7 @@ await client.bulkSync.create({
```typescript
-await client.bulkSync.get("248df4b7-aa70-47b8-a036-33ac447e668d", {
- refresh_schemas: true,
-});
+await client.bulkSync.get("id");
```
@@ -238,16 +256,38 @@ await client.bulkSync.get("248df4b7-aa70-47b8-a036-33ac447e668d", {
```typescript
-await client.bulkSync.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
+await client.bulkSync.update("id", {
+ active: undefined,
+ automatically_add_new_fields: undefined,
+ automatically_add_new_objects: undefined,
+ concurrency_limit: undefined,
+ data_cutoff_timestamp: undefined,
destination_configuration: {
- schema: "my_schema",
+ destination_configuration: {
+ key: "value",
+ },
},
- destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
- name: "My Bulk Sync",
+ destination_connection_id: "destination_connection_id",
+ disable_record_timestamps: undefined,
+ discover: undefined,
+ mode: null,
+ name: "name",
+ normalize_names: undefined,
+ organization_id: undefined,
+ policies: undefined,
+ resync_concurrency_limit: undefined,
schedule: {
+ day_of_month: undefined,
+ day_of_week: undefined,
frequency: "manual",
+ hour: undefined,
+ minute: undefined,
+ month: undefined,
+ multi: undefined,
},
- source_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
+ schemas: undefined,
+ source_configuration: undefined,
+ source_connection_id: "source_connection_id",
});
```
@@ -304,9 +344,7 @@ await client.bulkSync.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
```typescript
-await client.bulkSync.remove("248df4b7-aa70-47b8-a036-33ac447e668d", {
- refresh_schemas: true,
-});
+await client.bulkSync.remove("id");
```
@@ -362,8 +400,10 @@ await client.bulkSync.remove("248df4b7-aa70-47b8-a036-33ac447e668d", {
```typescript
-await client.bulkSync.activate("248df4b7-aa70-47b8-a036-33ac447e668d", {
- active: true,
+await client.bulkSync.activate("id", {
+ body: {
+ active: true,
+ },
});
```
@@ -388,7 +428,7 @@ await client.bulkSync.activate("248df4b7-aa70-47b8-a036-33ac447e668d", {
-
-**request:** `Polytomic.ActivateSyncInput`
+**request:** `Polytomic.BulkSyncActivateRequest`
@@ -420,7 +460,12 @@ await client.bulkSync.activate("248df4b7-aa70-47b8-a036-33ac447e668d", {
```typescript
-await client.bulkSync.start("248df4b7-aa70-47b8-a036-33ac447e668d");
+await client.bulkSync.start("id", {
+ fetch_mode: undefined,
+ resync: undefined,
+ schemas: undefined,
+ test: undefined,
+});
```
@@ -463,7 +508,7 @@ await client.bulkSync.start("248df4b7-aa70-47b8-a036-33ac447e668d");
-client.bulkSync.getStatus(id) -> Polytomic.BulkSyncStatusEnvelope
+client.bulkSync.getStatus(id, { ...params }) -> Polytomic.BulkSyncStatusEnvelope
-
@@ -476,7 +521,7 @@ await client.bulkSync.start("248df4b7-aa70-47b8-a036-33ac447e668d");
-
```typescript
-await client.bulkSync.getStatus("248df4b7-aa70-47b8-a036-33ac447e668d");
+await client.bulkSync.getStatus("id");
```
@@ -500,6 +545,14 @@ await client.bulkSync.getStatus("248df4b7-aa70-47b8-a036-33ac447e668d");
-
+**request:** `Polytomic.BulkSyncGetStatusRequest`
+
+
+
+
+
+-
+
**requestOptions:** `BulkSync.RequestOptions`
@@ -524,9 +577,7 @@ await client.bulkSync.getStatus("248df4b7-aa70-47b8-a036-33ac447e668d");
-
```typescript
-await client.bulkSync.getSource("248df4b7-aa70-47b8-a036-33ac447e668d", {
- include_fields: true,
-});
+await client.bulkSync.getSource("id");
```
@@ -569,7 +620,7 @@ await client.bulkSync.getSource("248df4b7-aa70-47b8-a036-33ac447e668d", {
-client.bulkSync.getDestination(id) -> Polytomic.BulkSyncDestEnvelope
+client.bulkSync.getDestination(id, { ...params }) -> Polytomic.BulkSyncDestEnvelope
-
@@ -582,7 +633,7 @@ await client.bulkSync.getSource("248df4b7-aa70-47b8-a036-33ac447e668d", {
-
```typescript
-await client.bulkSync.getDestination("248df4b7-aa70-47b8-a036-33ac447e668d");
+await client.bulkSync.getDestination("id");
```
@@ -606,6 +657,14 @@ await client.bulkSync.getDestination("248df4b7-aa70-47b8-a036-33ac447e668d");
-
+**request:** `Polytomic.BulkSyncGetDestinationRequest`
+
+
+
+
+
+-
+
**requestOptions:** `BulkSync.RequestOptions`
@@ -659,7 +718,7 @@ await client.connections.getTypes();
-client.connections.getConnectionTypeSchema(id) -> Polytomic.JsonschemaSchema
+client.connections.getConnectionTypeSchema(id, { ...params }) -> Polytomic.JsonschemaSchema
-
@@ -672,7 +731,7 @@ await client.connections.getTypes();
-
```typescript
-await client.connections.getConnectionTypeSchema("postgresql");
+await client.connections.getConnectionTypeSchema("id");
```
@@ -696,6 +755,14 @@ await client.connections.getConnectionTypeSchema("postgresql");
-
+**request:** `Polytomic.ConnectionsGetConnectionTypeSchemaRequest`
+
+
+
+
+
+-
+
**requestOptions:** `Connections.RequestOptions`
@@ -762,14 +829,17 @@ await client.connections.list();
```typescript
await client.connections.create({
configuration: {
- database: "example",
- hostname: "postgres.example.com",
- password: "********",
- port: 5432,
- username: "user",
+ configuration: {
+ key: "value",
+ },
},
- name: "My Postgres Connection",
- type: "postgresql",
+ healthcheck_interval: undefined,
+ name: "name",
+ organization_id: undefined,
+ policies: undefined,
+ redirect_url: undefined,
+ type: "type",
+ validate: undefined,
});
```
@@ -841,8 +911,13 @@ See also:
```typescript
await client.connections.connect({
- name: "Salesforce Connection",
+ connection: undefined,
+ dark: undefined,
+ name: "name",
+ organization_id: undefined,
redirect_url: "redirect_url",
+ type: undefined,
+ whitelist: undefined,
});
```
@@ -908,13 +983,12 @@ Tests a connection configuration.
```typescript
await client.connections.testConnection({
configuration: {
- database: "example",
- hostname: "postgres.example.com",
- password: "password",
- port: 5432,
- username: "user",
+ configuration: {
+ key: "value",
+ },
},
- type: "postgresql",
+ connection_id: undefined,
+ type: "type",
});
```
@@ -950,7 +1024,7 @@ await client.connections.testConnection({
-client.connections.get(id) -> Polytomic.ConnectionResponseEnvelope
+client.connections.get(id, { ...params }) -> Polytomic.ConnectionResponseEnvelope
-
@@ -963,7 +1037,7 @@ await client.connections.testConnection({
-
```typescript
-await client.connections.get("248df4b7-aa70-47b8-a036-33ac447e668d");
+await client.connections.get("id");
```
@@ -987,6 +1061,14 @@ await client.connections.get("248df4b7-aa70-47b8-a036-33ac447e668d");
-
+**request:** `Polytomic.ConnectionsGetRequest`
+
+
+
+
+
+-
+
**requestOptions:** `Connections.RequestOptions`
@@ -1011,15 +1093,19 @@ await client.connections.get("248df4b7-aa70-47b8-a036-33ac447e668d");
-
```typescript
-await client.connections.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
+await client.connections.update("id", {
configuration: {
- database: "example",
- hostname: "postgres.example.com",
- password: "********",
- port: 5432,
- username: "user",
+ configuration: {
+ key: "value",
+ },
},
- name: "My Postgres Connection",
+ healthcheck_interval: undefined,
+ name: "name",
+ organization_id: undefined,
+ policies: undefined,
+ reconnect: undefined,
+ type: undefined,
+ validate: undefined,
});
```
@@ -1076,9 +1162,7 @@ await client.connections.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
-
```typescript
-await client.connections.remove("248df4b7-aa70-47b8-a036-33ac447e668d", {
- force: true,
-});
+await client.connections.remove("id");
```
@@ -1121,7 +1205,7 @@ await client.connections.remove("248df4b7-aa70-47b8-a036-33ac447e668d", {
-client.connections.getParameterValues(id) -> Polytomic.ConnectionParameterValuesResponseEnvelope
+client.connections.getParameterValues(id, { ...params }) -> Polytomic.ConnectionParameterValuesResponseEnvelope
-
@@ -1134,7 +1218,7 @@ await client.connections.remove("248df4b7-aa70-47b8-a036-33ac447e668d", {
-
```typescript
-await client.connections.getParameterValues("248df4b7-aa70-47b8-a036-33ac447e668d");
+await client.connections.getParameterValues("id");
```
@@ -1158,6 +1242,14 @@ await client.connections.getParameterValues("248df4b7-aa70-47b8-a036-33ac447e668
-
+**request:** `Polytomic.ConnectionsGetParameterValuesRequest`
+
+
+
+
+
+-
+
**requestOptions:** `Connections.RequestOptions`
@@ -1184,9 +1276,7 @@ await client.connections.getParameterValues("248df4b7-aa70-47b8-a036-33ac447e668
-
```typescript
-await client.queryRunner.runQuery("248df4b7-aa70-47b8-a036-33ac447e668d", {
- query: "SELECT * FROM table",
-});
+await client.queryRunner.runQuery("connection_id");
```
@@ -1242,7 +1332,7 @@ await client.queryRunner.runQuery("248df4b7-aa70-47b8-a036-33ac447e668d", {
-
```typescript
-await client.queryRunner.getQuery("248df4b7-aa70-47b8-a036-33ac447e668d");
+await client.queryRunner.getQuery("id");
```
@@ -1300,7 +1390,9 @@ await client.queryRunner.getQuery("248df4b7-aa70-47b8-a036-33ac447e668d");
-
```typescript
-await client.schemas.upsertField("248df4b7-aa70-47b8-a036-33ac447e668d", "public.users");
+await client.schemas.upsertField("connection_id", "schema_id", {
+ fields: undefined,
+});
```
@@ -1351,7 +1443,7 @@ await client.schemas.upsertField("248df4b7-aa70-47b8-a036-33ac447e668d", "public
-client.schemas.deleteField(connectionId, schemaId, fieldId) -> void
+client.schemas.deleteField(connectionId, schemaId, fieldId, { ...params }) -> void
-
@@ -1364,7 +1456,7 @@ await client.schemas.upsertField("248df4b7-aa70-47b8-a036-33ac447e668d", "public
-
```typescript
-await client.schemas.deleteField("248df4b7-aa70-47b8-a036-33ac447e668d", "public.users", "first_name");
+await client.schemas.deleteField("connection_id", "schema_id", "field_id");
```
@@ -1404,6 +1496,14 @@ await client.schemas.deleteField("248df4b7-aa70-47b8-a036-33ac447e668d", "public
-
+**request:** `Polytomic.SchemasDeleteFieldRequest`
+
+
+
+
+
+-
+
**requestOptions:** `Schemas.RequestOptions`
@@ -1428,7 +1528,9 @@ await client.schemas.deleteField("248df4b7-aa70-47b8-a036-33ac447e668d", "public
-
```typescript
-await client.schemas.setPrimaryKeys("248df4b7-aa70-47b8-a036-33ac447e668d", "public.users");
+await client.schemas.setPrimaryKeys("connection_id", "schema_id", {
+ fields: undefined,
+});
```
@@ -1479,7 +1581,7 @@ await client.schemas.setPrimaryKeys("248df4b7-aa70-47b8-a036-33ac447e668d", "pub
-client.schemas.resetPrimaryKeys(connectionId, schemaId) -> void
+client.schemas.resetPrimaryKeys(connectionId, schemaId, { ...params }) -> void
-
@@ -1507,7 +1609,7 @@ Delete all primary key overrides for a schema. After this call the schema will u
-
```typescript
-await client.schemas.resetPrimaryKeys("248df4b7-aa70-47b8-a036-33ac447e668d", "public.users");
+await client.schemas.resetPrimaryKeys("connection_id", "schema_id");
```
@@ -1539,6 +1641,14 @@ await client.schemas.resetPrimaryKeys("248df4b7-aa70-47b8-a036-33ac447e668d", "p
-
+**request:** `Polytomic.SchemasResetPrimaryKeysRequest`
+
+
+
+
+
+-
+
**requestOptions:** `Schemas.RequestOptions`
@@ -1550,7 +1660,7 @@ await client.schemas.resetPrimaryKeys("248df4b7-aa70-47b8-a036-33ac447e668d", "p
-client.schemas.refresh(id) -> void
+client.schemas.refresh(id, { ...params }) -> void
-
@@ -1563,7 +1673,7 @@ await client.schemas.resetPrimaryKeys("248df4b7-aa70-47b8-a036-33ac447e668d", "p
-
```typescript
-await client.schemas.refresh("248df4b7-aa70-47b8-a036-33ac447e668d");
+await client.schemas.refresh("id");
```
@@ -1587,6 +1697,14 @@ await client.schemas.refresh("248df4b7-aa70-47b8-a036-33ac447e668d");
-
+**request:** `Polytomic.SchemasRefreshRequest`
+
+
+
+
+
+-
+
**requestOptions:** `Schemas.RequestOptions`
@@ -1598,7 +1716,7 @@ await client.schemas.refresh("248df4b7-aa70-47b8-a036-33ac447e668d");
-client.schemas.getStatus(id) -> Polytomic.BulkSyncSourceStatusEnvelope
+client.schemas.getStatus(id, { ...params }) -> Polytomic.BulkSyncSourceStatusEnvelope
-
@@ -1626,7 +1744,7 @@ Polytomic periodically inspects the schemas for connections to discover new fiel
-
```typescript
-await client.schemas.getStatus("248df4b7-aa70-47b8-a036-33ac447e668d");
+await client.schemas.getStatus("id");
```
@@ -1650,6 +1768,14 @@ await client.schemas.getStatus("248df4b7-aa70-47b8-a036-33ac447e668d");
-
+**request:** `Polytomic.SchemasGetStatusRequest`
+
+
+
+
+
+-
+
**requestOptions:** `Schemas.RequestOptions`
@@ -1661,7 +1787,7 @@ await client.schemas.getStatus("248df4b7-aa70-47b8-a036-33ac447e668d");
-client.schemas.get(id, schemaId) -> Polytomic.BulkSyncSourceSchemaEnvelope
+client.schemas.get(id, schemaId, { ...params }) -> Polytomic.BulkSyncSourceSchemaEnvelope
-
@@ -1674,7 +1800,7 @@ await client.schemas.getStatus("248df4b7-aa70-47b8-a036-33ac447e668d");
-
```typescript
-await client.schemas.get("248df4b7-aa70-47b8-a036-33ac447e668d", "public.users");
+await client.schemas.get("id", "schema_id");
```
@@ -1706,6 +1832,14 @@ await client.schemas.get("248df4b7-aa70-47b8-a036-33ac447e668d", "public.users")
-
+**request:** `Polytomic.SchemasGetRequest`
+
+
+
+
+
+-
+
**requestOptions:** `Schemas.RequestOptions`
@@ -1717,7 +1851,7 @@ await client.schemas.get("248df4b7-aa70-47b8-a036-33ac447e668d", "public.users")
-client.schemas.getRecords(id, schemaId) -> Polytomic.SchemaRecordsResponseEnvelope
+client.schemas.getRecords(id, schemaId, { ...params }) -> Polytomic.SchemaRecordsResponseEnvelope
-
@@ -1730,7 +1864,7 @@ await client.schemas.get("248df4b7-aa70-47b8-a036-33ac447e668d", "public.users")
-
```typescript
-await client.schemas.getRecords("248df4b7-aa70-47b8-a036-33ac447e668d", "public.users");
+await client.schemas.getRecords("id", "schema_id");
```
@@ -1762,6 +1896,14 @@ await client.schemas.getRecords("248df4b7-aa70-47b8-a036-33ac447e668d", "public.
-
+**request:** `Polytomic.SchemasGetRecordsRequest`
+
+
+
+
+
+-
+
**requestOptions:** `Schemas.RequestOptions`
@@ -1788,7 +1930,7 @@ await client.schemas.getRecords("248df4b7-aa70-47b8-a036-33ac447e668d", "public.
-
```typescript
-await client.models.getEnrichmentSource("248df4b7-aa70-47b8-a036-33ac447e668d");
+await client.models.getEnrichmentSource("id");
```
@@ -1859,7 +2001,9 @@ For a given connection and enrichment configuration, provides the valid sets of
-
```typescript
-await client.models.post("248df4b7-aa70-47b8-a036-33ac447e668d");
+await client.models.post("connection_id", {
+ configuration: undefined,
+});
```
@@ -1917,11 +2061,22 @@ await client.models.post("248df4b7-aa70-47b8-a036-33ac447e668d");
```typescript
await client.models.preview({
body: {
+ additional_fields: undefined,
configuration: {
- table: "public.users",
+ configuration: {
+ key: "value",
+ },
},
- connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
- name: "Users",
+ connection_id: "connection_id",
+ enricher: undefined,
+ fields: undefined,
+ identifier: undefined,
+ labels: undefined,
+ name: "name",
+ organization_id: undefined,
+ policies: undefined,
+ relations: undefined,
+ tracking_columns: undefined,
},
});
```
@@ -2013,11 +2168,22 @@ await client.models.list();
```typescript
await client.models.create({
body: {
+ additional_fields: undefined,
configuration: {
- table: "public.users",
+ configuration: {
+ key: "value",
+ },
},
- connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
- name: "Users",
+ connection_id: "connection_id",
+ enricher: undefined,
+ fields: undefined,
+ identifier: undefined,
+ labels: undefined,
+ name: "name",
+ organization_id: undefined,
+ policies: undefined,
+ relations: undefined,
+ tracking_columns: undefined,
},
});
```
@@ -2067,7 +2233,7 @@ await client.models.create({
-
```typescript
-await client.models.get("248df4b7-aa70-47b8-a036-33ac447e668d");
+await client.models.get("id");
```
@@ -2123,13 +2289,24 @@ await client.models.get("248df4b7-aa70-47b8-a036-33ac447e668d");
-
```typescript
-await client.models.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
- async: false,
+await client.models.update("id", {
+ additional_fields: undefined,
configuration: {
- table: "public.users",
+ configuration: {
+ key: "value",
+ },
},
- connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
- name: "Users",
+ connection_id: "connection_id",
+ enricher: undefined,
+ fields: undefined,
+ identifier: undefined,
+ labels: undefined,
+ name: "name",
+ organization_id: undefined,
+ policies: undefined,
+ refresh: undefined,
+ relations: undefined,
+ tracking_columns: undefined,
});
```
@@ -2186,7 +2363,7 @@ await client.models.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
-
```typescript
-await client.models.remove("248df4b7-aa70-47b8-a036-33ac447e668d");
+await client.models.remove("id");
```
@@ -2257,7 +2434,7 @@ Returns sample records from the model. The first ten records that the source pro
-
```typescript
-await client.models.sample("248df4b7-aa70-47b8-a036-33ac447e668d");
+await client.models.sample("id");
```
@@ -2315,7 +2492,7 @@ await client.models.sample("248df4b7-aa70-47b8-a036-33ac447e668d");
-
```typescript
-await client.modelSync.getSource("248df4b7-aa70-47b8-a036-33ac447e668d");
+await client.modelSync.getSource("id");
```
@@ -2371,7 +2548,7 @@ await client.modelSync.getSource("248df4b7-aa70-47b8-a036-33ac447e668d");
-
```typescript
-await client.modelSync.getSourceFields("248df4b7-aa70-47b8-a036-33ac447e668d");
+await client.modelSync.getSourceFields("id");
```
@@ -2427,10 +2604,7 @@ await client.modelSync.getSourceFields("248df4b7-aa70-47b8-a036-33ac447e668d");
-
```typescript
-await client.modelSync.list({
- active: true,
- target_connection_id: "0b155265-c537-44c9-9359-a3ceb468a4da",
-});
+await client.modelSync.list();
```
@@ -2549,16 +2723,58 @@ a connection supports target creation.
```typescript
await client.modelSync.create({
+ active: undefined,
+ encryption_passphrase: undefined,
fields: [
{
- target: "name",
+ encryption_enabled: undefined,
+ new: undefined,
+ override_value: undefined,
+ source: undefined,
+ sync_mode: undefined,
+ target: "target",
+ },
+ {
+ encryption_enabled: undefined,
+ new: undefined,
+ override_value: undefined,
+ source: undefined,
+ sync_mode: undefined,
+ target: "target",
},
],
+ filter_logic: undefined,
+ filters: undefined,
+ identity: undefined,
mode: "create",
- name: "Users Sync",
- schedule: {},
+ name: "name",
+ only_enrich_updates: undefined,
+ organization_id: undefined,
+ override_fields: undefined,
+ overrides: undefined,
+ policies: undefined,
+ schedule: {
+ connection_id: undefined,
+ day_of_month: undefined,
+ day_of_week: undefined,
+ frequency: undefined,
+ hour: undefined,
+ job_id: undefined,
+ minute: undefined,
+ month: undefined,
+ run_after: undefined,
+ run_after_success_only: undefined,
+ },
+ skip_initial_backfill: undefined,
+ sync_all_records: undefined,
target: {
- connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
+ configuration: undefined,
+ connection_id: "connection_id",
+ create: undefined,
+ filter_logic: undefined,
+ new_name: undefined,
+ object: undefined,
+ search_values: undefined,
},
});
```
@@ -2635,7 +2851,7 @@ await client.modelSync.getScheduleOptions();
-client.modelSync.get(id) -> Polytomic.ModelSyncResponseEnvelope
+client.modelSync.get(id, { ...params }) -> Polytomic.ModelSyncResponseEnvelope
-
@@ -2648,7 +2864,7 @@ await client.modelSync.getScheduleOptions();
-
```typescript
-await client.modelSync.get("248df4b7-aa70-47b8-a036-33ac447e668d");
+await client.modelSync.get("id");
```
@@ -2672,6 +2888,14 @@ await client.modelSync.get("248df4b7-aa70-47b8-a036-33ac447e668d");
-
+**request:** `Polytomic.ModelSyncGetRequest`
+
+
+
+
+
+-
+
**requestOptions:** `ModelSync.RequestOptions`
@@ -2696,17 +2920,59 @@ await client.modelSync.get("248df4b7-aa70-47b8-a036-33ac447e668d");
-
```typescript
-await client.modelSync.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
+await client.modelSync.update("id", {
+ active: undefined,
+ encryption_passphrase: undefined,
fields: [
{
- target: "name",
+ encryption_enabled: undefined,
+ new: undefined,
+ override_value: undefined,
+ source: undefined,
+ sync_mode: undefined,
+ target: "target",
+ },
+ {
+ encryption_enabled: undefined,
+ new: undefined,
+ override_value: undefined,
+ source: undefined,
+ sync_mode: undefined,
+ target: "target",
},
],
+ filter_logic: undefined,
+ filters: undefined,
+ identity: undefined,
mode: "create",
- name: "Users Sync",
- schedule: {},
+ name: "name",
+ only_enrich_updates: undefined,
+ organization_id: undefined,
+ override_fields: undefined,
+ overrides: undefined,
+ policies: undefined,
+ schedule: {
+ connection_id: undefined,
+ day_of_month: undefined,
+ day_of_week: undefined,
+ frequency: undefined,
+ hour: undefined,
+ job_id: undefined,
+ minute: undefined,
+ month: undefined,
+ run_after: undefined,
+ run_after_success_only: undefined,
+ },
+ skip_initial_backfill: undefined,
+ sync_all_records: undefined,
target: {
- connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
+ configuration: undefined,
+ connection_id: "connection_id",
+ create: undefined,
+ filter_logic: undefined,
+ new_name: undefined,
+ object: undefined,
+ search_values: undefined,
},
});
```
@@ -2751,7 +3017,7 @@ await client.modelSync.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
-client.modelSync.remove(id) -> void
+client.modelSync.remove(id, { ...params }) -> void
-
@@ -2764,7 +3030,7 @@ await client.modelSync.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
-
```typescript
-await client.modelSync.remove("248df4b7-aa70-47b8-a036-33ac447e668d");
+await client.modelSync.remove("id");
```
@@ -2788,6 +3054,14 @@ await client.modelSync.remove("248df4b7-aa70-47b8-a036-33ac447e668d");
-
+**request:** `Polytomic.ModelSyncRemoveRequest`
+
+
+
+
+
+-
+
**requestOptions:** `ModelSync.RequestOptions`
@@ -2812,8 +3086,10 @@ await client.modelSync.remove("248df4b7-aa70-47b8-a036-33ac447e668d");
-
```typescript
-await client.modelSync.activate("248df4b7-aa70-47b8-a036-33ac447e668d", {
- active: true,
+await client.modelSync.activate("id", {
+ body: {
+ active: true,
+ },
});
```
@@ -2838,7 +3114,7 @@ await client.modelSync.activate("248df4b7-aa70-47b8-a036-33ac447e668d", {
-
-**request:** `Polytomic.ActivateSyncInput`
+**request:** `Polytomic.ModelSyncActivateRequest`
@@ -2857,7 +3133,7 @@ await client.modelSync.activate("248df4b7-aa70-47b8-a036-33ac447e668d", {
-client.modelSync.cancel(id) -> Polytomic.CancelModelSyncResponseEnvelope
+client.modelSync.cancel(id, { ...params }) -> Polytomic.CancelModelSyncResponseEnvelope
-
@@ -2870,7 +3146,7 @@ await client.modelSync.activate("248df4b7-aa70-47b8-a036-33ac447e668d", {
-
```typescript
-await client.modelSync.cancel("248df4b7-aa70-47b8-a036-33ac447e668d");
+await client.modelSync.cancel("id");
```
@@ -2894,6 +3170,14 @@ await client.modelSync.cancel("248df4b7-aa70-47b8-a036-33ac447e668d");
-
+**request:** `Polytomic.ModelSyncCancelRequest`
+
+
+
+
+
+-
+
**requestOptions:** `ModelSync.RequestOptions`
@@ -2935,7 +3219,11 @@ await client.modelSync.cancel("248df4b7-aa70-47b8-a036-33ac447e668d");
-
```typescript
-await client.modelSync.start("248df4b7-aa70-47b8-a036-33ac447e668d");
+await client.modelSync.start("id", {
+ identities: undefined,
+ resync: undefined,
+ test: undefined,
+});
```
@@ -2978,7 +3266,7 @@ await client.modelSync.start("248df4b7-aa70-47b8-a036-33ac447e668d");
-client.modelSync.getStatus(id) -> Polytomic.SyncStatusEnvelope
+client.modelSync.getStatus(id, { ...params }) -> Polytomic.SyncStatusEnvelope
-
@@ -2991,7 +3279,7 @@ await client.modelSync.start("248df4b7-aa70-47b8-a036-33ac447e668d");
-
```typescript
-await client.modelSync.getStatus("248df4b7-aa70-47b8-a036-33ac447e668d");
+await client.modelSync.getStatus("id");
```
@@ -3015,6 +3303,14 @@ await client.modelSync.getStatus("248df4b7-aa70-47b8-a036-33ac447e668d");
-
+**request:** `Polytomic.ModelSyncGetStatusRequest`
+
+
+
+
+
+-
+
**requestOptions:** `ModelSync.RequestOptions`
@@ -3041,11 +3337,7 @@ await client.modelSync.getStatus("248df4b7-aa70-47b8-a036-33ac447e668d");
-
```typescript
-await client.events.list({
- organization_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
- starting_after: "2020-01-01T00:00:00Z",
- ending_before: "2020-01-01T00:00:00Z",
-});
+await client.events.list();
```
@@ -3122,7 +3414,7 @@ await client.events.getTypes();
## Jobs
-client.jobs.get(id, type_) -> Polytomic.JobResponseEnvelope
+client.jobs.get(type_, id, { ...params }) -> Polytomic.JobResponseEnvelope
-
@@ -3135,7 +3427,7 @@ await client.events.getTypes();
-
```typescript
-await client.jobs.get("248df4b7-aa70-47b8-a036-33ac447e668d", "createmodel");
+await client.jobs.get("type", "id");
```
@@ -3151,6 +3443,14 @@ await client.jobs.get("248df4b7-aa70-47b8-a036-33ac447e668d", "createmodel");
-
+**type\_:** `string`
+
+
+
+
+
+-
+
**id:** `string`
@@ -3159,7 +3459,7 @@ await client.jobs.get("248df4b7-aa70-47b8-a036-33ac447e668d", "createmodel");
-
-**type\_:** `string`
+**request:** `Polytomic.JobsGetRequest`
@@ -3290,7 +3590,9 @@ await client.notifications.getGlobalErrorSubscribers();
-
```typescript
-await client.notifications.setGlobalErrorSubscribers();
+await client.notifications.setGlobalErrorSubscribers({
+ emails: undefined,
+});
```
@@ -3415,7 +3717,12 @@ await client.organization.list();
```typescript
await client.organization.create({
- name: "My Organization",
+ client_id: undefined,
+ client_secret: undefined,
+ issuer: undefined,
+ name: "name",
+ sso_domain: undefined,
+ sso_org_id: undefined,
});
```
@@ -3451,7 +3758,7 @@ await client.organization.create({
-client.organization.get(id) -> Polytomic.OrganizationEnvelope
+client.organization.get(id, { ...params }) -> Polytomic.OrganizationEnvelope
-
@@ -3481,7 +3788,7 @@ await client.organization.create({
-
```typescript
-await client.organization.get("248df4b7-aa70-47b8-a036-33ac447e668d");
+await client.organization.get("id");
```
@@ -3505,6 +3812,14 @@ await client.organization.get("248df4b7-aa70-47b8-a036-33ac447e668d");
-
+**request:** `Polytomic.OrganizationGetRequest`
+
+
+
+
+
+-
+
**requestOptions:** `Organization.RequestOptions`
@@ -3546,8 +3861,13 @@ await client.organization.get("248df4b7-aa70-47b8-a036-33ac447e668d");
-
```typescript
-await client.organization.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
- name: "My Organization",
+await client.organization.update("id", {
+ client_id: undefined,
+ client_secret: undefined,
+ issuer: undefined,
+ name: "name",
+ sso_domain: undefined,
+ sso_org_id: undefined,
});
```
@@ -3591,7 +3911,7 @@ await client.organization.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
-client.organization.remove(id) -> void
+client.organization.remove(id, { ...params }) -> void
-
@@ -3621,7 +3941,7 @@ await client.organization.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
-
```typescript
-await client.organization.remove("248df4b7-aa70-47b8-a036-33ac447e668d");
+await client.organization.remove("id");
```
@@ -3645,6 +3965,14 @@ await client.organization.remove("248df4b7-aa70-47b8-a036-33ac447e668d");
-
+**request:** `Polytomic.OrganizationRemoveRequest`
+
+
+
+
+
+-
+
**requestOptions:** `Organization.RequestOptions`
@@ -3658,7 +3986,7 @@ await client.organization.remove("248df4b7-aa70-47b8-a036-33ac447e668d");
## Users
-client.users.list(orgId) -> Polytomic.ListUsersEnvelope
+client.users.list(orgId, { ...params }) -> Polytomic.ListUsersEnvelope
-
@@ -3688,7 +4016,7 @@ await client.organization.remove("248df4b7-aa70-47b8-a036-33ac447e668d");
-
```typescript
-await client.users.list("248df4b7-aa70-47b8-a036-33ac447e668d");
+await client.users.list("org_id");
```
@@ -3712,6 +4040,14 @@ await client.users.list("248df4b7-aa70-47b8-a036-33ac447e668d");
-
+**request:** `Polytomic.UsersListRequest`
+
+
+
+
+
+-
+
**requestOptions:** `Users.RequestOptions`
@@ -3753,8 +4089,9 @@ await client.users.list("248df4b7-aa70-47b8-a036-33ac447e668d");
-
```typescript
-await client.users.create("248df4b7-aa70-47b8-a036-33ac447e668d", {
- email: "mail@example.com",
+await client.users.create("org_id", {
+ email: "email",
+ role: undefined,
});
```
@@ -3798,7 +4135,7 @@ await client.users.create("248df4b7-aa70-47b8-a036-33ac447e668d", {
-client.users.get(id, orgId) -> Polytomic.UserEnvelope
+client.users.get(orgId, id, { ...params }) -> Polytomic.UserEnvelope
-
@@ -3828,7 +4165,7 @@ await client.users.create("248df4b7-aa70-47b8-a036-33ac447e668d", {
-
```typescript
-await client.users.get("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d");
+await client.users.get("org_id", "id");
```
@@ -3844,6 +4181,14 @@ await client.users.get("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47
-
+**orgId:** `string`
+
+
+
+
+
+-
+
**id:** `string`
@@ -3852,7 +4197,7 @@ await client.users.get("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47
-
-**orgId:** `string`
+**request:** `Polytomic.UsersGetRequest`
@@ -3871,7 +4216,7 @@ await client.users.get("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47
-client.users.update(id, orgId, { ...params }) -> Polytomic.UserEnvelope
+client.users.update(orgId, id, { ...params }) -> Polytomic.UserEnvelope
-
@@ -3901,8 +4246,9 @@ await client.users.get("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47
-
```typescript
-await client.users.update("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
- email: "mail@example.com",
+await client.users.update("org_id", "id", {
+ email: "email",
+ role: undefined,
});
```
@@ -3919,7 +4265,7 @@ await client.users.update("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70
-
-**id:** `string`
+**orgId:** `string`
@@ -3927,7 +4273,7 @@ await client.users.update("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70
-
-**orgId:** `string`
+**id:** `string`
@@ -3954,7 +4300,7 @@ await client.users.update("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70
-client.users.remove(id, orgId) -> Polytomic.UserEnvelope
+client.users.remove(orgId, id, { ...params }) -> Polytomic.UserEnvelope
-
@@ -3984,7 +4330,7 @@ await client.users.update("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70
-
```typescript
-await client.users.remove("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d");
+await client.users.remove("org_id", "id");
```
@@ -4000,6 +4346,14 @@ await client.users.remove("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70
-
+**orgId:** `string`
+
+
+
+
+
+-
+
**id:** `string`
@@ -4008,7 +4362,7 @@ await client.users.remove("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70
-
-**orgId:** `string`
+**request:** `Polytomic.UsersRemoveRequest`
@@ -4057,9 +4411,7 @@ await client.users.remove("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70
-
```typescript
-await client.users.createApiKey("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
- force: true,
-});
+await client.users.createApiKey("org_id", "id");
```
@@ -4204,8 +4556,9 @@ Consult the [Events documentation](https://apidocs.polytomic.com/guides/events)
```typescript
await client.webhooks.create({
- endpoint: "https://example.com/webhook",
- secret: "secret",
+ endpoint: "endpoint",
+ organization_id: undefined,
+ secret: "banana",
});
```
@@ -4241,7 +4594,7 @@ await client.webhooks.create({
-client.webhooks.get(id) -> Polytomic.WebhookEnvelope
+client.webhooks.get(id, { ...params }) -> Polytomic.WebhookEnvelope
-
@@ -4273,7 +4626,7 @@ Consult the [Events documentation](https://apidocs.polytomic.com/guides/events)
-
```typescript
-await client.webhooks.get("248df4b7-aa70-47b8-a036-33ac447e668d");
+await client.webhooks.get("id");
```
@@ -4297,6 +4650,14 @@ await client.webhooks.get("248df4b7-aa70-47b8-a036-33ac447e668d");
-
+**request:** `Polytomic.WebhooksGetRequest`
+
+
+
+
+
+-
+
**requestOptions:** `Webhooks.RequestOptions`
@@ -4340,9 +4701,10 @@ Consult the [Events documentation](https://apidocs.polytomic.com/guides/events)
-
```typescript
-await client.webhooks.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
- endpoint: "https://example.com/webhook",
- secret: "secret",
+await client.webhooks.update("id", {
+ endpoint: "endpoint",
+ organization_id: undefined,
+ secret: "banana",
});
```
@@ -4386,7 +4748,7 @@ await client.webhooks.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
-client.webhooks.remove(id) -> void
+client.webhooks.remove(id, { ...params }) -> void
-
@@ -4399,7 +4761,7 @@ await client.webhooks.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
-
```typescript
-await client.webhooks.remove("248df4b7-aa70-47b8-a036-33ac447e668d");
+await client.webhooks.remove("id");
```
@@ -4423,6 +4785,14 @@ await client.webhooks.remove("248df4b7-aa70-47b8-a036-33ac447e668d");
-
+**request:** `Polytomic.WebhooksRemoveRequest`
+
+
+
+
+
+-
+
**requestOptions:** `Webhooks.RequestOptions`
@@ -4434,7 +4804,7 @@ await client.webhooks.remove("248df4b7-aa70-47b8-a036-33ac447e668d");
-client.webhooks.disable(id) -> Polytomic.WebhookEnvelope
+client.webhooks.disable(id, { ...params }) -> Polytomic.WebhookEnvelope
-
@@ -4447,7 +4817,7 @@ await client.webhooks.remove("248df4b7-aa70-47b8-a036-33ac447e668d");
-
```typescript
-await client.webhooks.disable("248df4b7-aa70-47b8-a036-33ac447e668d");
+await client.webhooks.disable("id");
```
@@ -4471,6 +4841,14 @@ await client.webhooks.disable("248df4b7-aa70-47b8-a036-33ac447e668d");
-
+**request:** `Polytomic.WebhooksDisableRequest`
+
+
+
+
+
+-
+
**requestOptions:** `Webhooks.RequestOptions`
@@ -4482,7 +4860,7 @@ await client.webhooks.disable("248df4b7-aa70-47b8-a036-33ac447e668d");
-client.webhooks.enable(id) -> Polytomic.WebhookEnvelope
+client.webhooks.enable(id, { ...params }) -> Polytomic.WebhookEnvelope
-
@@ -4495,7 +4873,7 @@ await client.webhooks.disable("248df4b7-aa70-47b8-a036-33ac447e668d");
-
```typescript
-await client.webhooks.enable("248df4b7-aa70-47b8-a036-33ac447e668d");
+await client.webhooks.enable("id");
```
@@ -4519,6 +4897,14 @@ await client.webhooks.enable("248df4b7-aa70-47b8-a036-33ac447e668d");
-
+**request:** `Polytomic.WebhooksEnableRequest`
+
+
+
+
+
+-
+
**requestOptions:** `Webhooks.RequestOptions`
@@ -4545,10 +4931,7 @@ await client.webhooks.enable("248df4b7-aa70-47b8-a036-33ac447e668d");
-
```typescript
-await client.bulkSync.executions.listStatus({
- all: true,
- active: true,
-});
+await client.bulkSync.executions.listStatus();
```
@@ -4596,12 +4979,7 @@ await client.bulkSync.executions.listStatus({
-
```typescript
-await client.bulkSync.executions.list("248df4b7-aa70-47b8-a036-33ac447e668d", {
- page_token: "AmkYh8v0jR5B3kls2Qcc9y8MjrPmvR4CvaK7H0F4rEwqvg76K==",
- only_terminal: true,
- ascending: true,
- limit: 100,
-});
+await client.bulkSync.executions.list("id");
```
@@ -4644,7 +5022,7 @@ await client.bulkSync.executions.list("248df4b7-aa70-47b8-a036-33ac447e668d", {
-client.bulkSync.executions.get(id, execId) -> Polytomic.BulkSyncExecutionEnvelope
+client.bulkSync.executions.get(id, execId, { ...params }) -> Polytomic.BulkSyncExecutionEnvelope
-
@@ -4657,7 +5035,7 @@ await client.bulkSync.executions.list("248df4b7-aa70-47b8-a036-33ac447e668d", {
-
```typescript
-await client.bulkSync.executions.get("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d");
+await client.bulkSync.executions.get("id", "exec_id");
```
@@ -4689,6 +5067,14 @@ await client.bulkSync.executions.get("248df4b7-aa70-47b8-a036-33ac447e668d", "24
-
+**request:** `Polytomic.bulkSync.ExecutionsGetRequest`
+
+
+
+
+
+-
+
**requestOptions:** `Executions.RequestOptions`
@@ -4700,7 +5086,7 @@ await client.bulkSync.executions.get("248df4b7-aa70-47b8-a036-33ac447e668d", "24
-client.bulkSync.executions.getLogs(syncId, executionId) -> Polytomic.V4BulkSyncExecutionLogsEnvelope
+client.bulkSync.executions.getLogs(syncId, executionId, { ...params }) -> Polytomic.V4BulkSyncExecutionLogsEnvelope
-
@@ -4713,10 +5099,7 @@ await client.bulkSync.executions.get("248df4b7-aa70-47b8-a036-33ac447e668d", "24
-
```typescript
-await client.bulkSync.executions.getLogs(
- "248df4b7-aa70-47b8-a036-33ac447e668d",
- "248df4b7-aa70-47b8-a036-33ac447e668d",
-);
+await client.bulkSync.executions.getLogs("sync_id", "execution_id");
```
@@ -4748,6 +5131,14 @@ await client.bulkSync.executions.getLogs(
-
+**request:** `Polytomic.bulkSync.ExecutionsGetLogsRequest`
+
+
+
+
+
+-
+
**requestOptions:** `Executions.RequestOptions`
@@ -4772,10 +5163,7 @@ await client.bulkSync.executions.getLogs(
-
```typescript
-await client.bulkSync.executions.exportLogs(
- "248df4b7-aa70-47b8-a036-33ac447e668d",
- "248df4b7-aa70-47b8-a036-33ac447e668d",
-);
+await client.bulkSync.executions.exportLogs("sync_id", "execution_id");
```
@@ -4841,7 +5229,7 @@ await client.bulkSync.executions.exportLogs(
-
```typescript
-await client.bulkSync.schemas.list("248df4b7-aa70-47b8-a036-33ac447e668d");
+await client.bulkSync.schemas.list("id");
```
@@ -4897,7 +5285,9 @@ await client.bulkSync.schemas.list("248df4b7-aa70-47b8-a036-33ac447e668d");
-
```typescript
-await client.bulkSync.schemas.patch("248df4b7-aa70-47b8-a036-33ac447e668d");
+await client.bulkSync.schemas.patch("id", {
+ schemas: undefined,
+});
```
@@ -4940,7 +5330,7 @@ await client.bulkSync.schemas.patch("248df4b7-aa70-47b8-a036-33ac447e668d");
-client.bulkSync.schemas.get(id, schemaId) -> Polytomic.BulkSchemaEnvelope
+client.bulkSync.schemas.get(id, schemaId, { ...params }) -> Polytomic.BulkSchemaEnvelope
-
@@ -4953,7 +5343,7 @@ await client.bulkSync.schemas.patch("248df4b7-aa70-47b8-a036-33ac447e668d");
-
```typescript
-await client.bulkSync.schemas.get("248df4b7-aa70-47b8-a036-33ac447e668d", "Contact");
+await client.bulkSync.schemas.get("id", "schema_id");
```
@@ -4985,6 +5375,14 @@ await client.bulkSync.schemas.get("248df4b7-aa70-47b8-a036-33ac447e668d", "Conta
-
+**request:** `Polytomic.bulkSync.SchemasGetRequest`
+
+
+
+
+
+-
+
**requestOptions:** `Schemas.RequestOptions`
@@ -5009,7 +5407,16 @@ await client.bulkSync.schemas.get("248df4b7-aa70-47b8-a036-33ac447e668d", "Conta
-
```typescript
-await client.bulkSync.schemas.update("248df4b7-aa70-47b8-a036-33ac447e668d", "contact");
+await client.bulkSync.schemas.update("id", "schema_id", {
+ data_cutoff_timestamp: undefined,
+ disable_data_cutoff: undefined,
+ enabled: undefined,
+ fields: undefined,
+ filters: undefined,
+ partition_key: undefined,
+ tracking_field: undefined,
+ user_output_name: undefined,
+});
```
@@ -5062,7 +5469,7 @@ await client.bulkSync.schemas.update("248df4b7-aa70-47b8-a036-33ac447e668d", "co
## BulkSync Schedules
-client.bulkSync.schedules.list(syncId) -> Polytomic.SchedulesEnvelope
+client.bulkSync.schedules.list(syncId, { ...params }) -> Polytomic.SchedulesEnvelope
-
@@ -5075,7 +5482,7 @@ await client.bulkSync.schemas.update("248df4b7-aa70-47b8-a036-33ac447e668d", "co
-
```typescript
-await client.bulkSync.schedules.list("248df4b7-aa70-47b8-a036-33ac447e668d");
+await client.bulkSync.schedules.list("sync_id");
```
@@ -5099,6 +5506,14 @@ await client.bulkSync.schedules.list("248df4b7-aa70-47b8-a036-33ac447e668d");
-
+**request:** `Polytomic.bulkSync.SchedulesListRequest`
+
+
+
+
+
+-
+
**requestOptions:** `Schedules.RequestOptions`
@@ -5123,9 +5538,15 @@ await client.bulkSync.schedules.list("248df4b7-aa70-47b8-a036-33ac447e668d");
-
```typescript
-await client.bulkSync.schedules.create("248df4b7-aa70-47b8-a036-33ac447e668d", {
+await client.bulkSync.schedules.create("sync_id", {
schedule: {
+ dayOfMonth: undefined,
+ dayOfWeek: undefined,
frequency: "manual",
+ hour: undefined,
+ minute: undefined,
+ month: undefined,
+ selectiveMode: undefined,
},
});
```
@@ -5170,7 +5591,7 @@ await client.bulkSync.schedules.create("248df4b7-aa70-47b8-a036-33ac447e668d", {
-client.bulkSync.schedules.get(syncId, scheduleId) -> Polytomic.ScheduleEnvelope
+client.bulkSync.schedules.get(syncId, scheduleId, { ...params }) -> Polytomic.ScheduleEnvelope
-
@@ -5183,7 +5604,7 @@ await client.bulkSync.schedules.create("248df4b7-aa70-47b8-a036-33ac447e668d", {
-
```typescript
-await client.bulkSync.schedules.get("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d");
+await client.bulkSync.schedules.get("sync_id", "schedule_id");
```
@@ -5215,6 +5636,14 @@ await client.bulkSync.schedules.get("248df4b7-aa70-47b8-a036-33ac447e668d", "248
-
+**request:** `Polytomic.bulkSync.SchedulesGetRequest`
+
+
+
+
+
+-
+
**requestOptions:** `Schedules.RequestOptions`
@@ -5239,9 +5668,15 @@ await client.bulkSync.schedules.get("248df4b7-aa70-47b8-a036-33ac447e668d", "248
-
```typescript
-await client.bulkSync.schedules.update("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
+await client.bulkSync.schedules.update("sync_id", "schedule_id", {
schedule: {
+ dayOfMonth: undefined,
+ dayOfWeek: undefined,
frequency: "manual",
+ hour: undefined,
+ minute: undefined,
+ month: undefined,
+ selectiveMode: undefined,
},
});
```
@@ -5294,7 +5729,7 @@ await client.bulkSync.schedules.update("248df4b7-aa70-47b8-a036-33ac447e668d", "
-client.bulkSync.schedules.delete(syncId, scheduleId) -> void
+client.bulkSync.schedules.delete(syncId, scheduleId, { ...params }) -> void
-
@@ -5307,7 +5742,7 @@ await client.bulkSync.schedules.update("248df4b7-aa70-47b8-a036-33ac447e668d", "
-
```typescript
-await client.bulkSync.schedules.delete("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d");
+await client.bulkSync.schedules.delete("sync_id", "schedule_id");
```
@@ -5339,6 +5774,14 @@ await client.bulkSync.schedules.delete("248df4b7-aa70-47b8-a036-33ac447e668d", "
-
+**request:** `Polytomic.bulkSync.SchedulesDeleteRequest`
+
+
+
+
+
+-
+
**requestOptions:** `Schedules.RequestOptions`
@@ -5365,7 +5808,7 @@ await client.bulkSync.schedules.delete("248df4b7-aa70-47b8-a036-33ac447e668d", "
-
```typescript
-await client.modelSync.targets.getTarget("248df4b7-aa70-47b8-a036-33ac447e668d");
+await client.modelSync.targets.getTarget("id");
```
@@ -5421,9 +5864,8 @@ await client.modelSync.targets.getTarget("248df4b7-aa70-47b8-a036-33ac447e668d")
-
```typescript
-await client.modelSync.targets.getTargetFields("248df4b7-aa70-47b8-a036-33ac447e668d", {
- target: "database.table",
- refresh: false,
+await client.modelSync.targets.getTargetFields("id", {
+ target: "target",
});
```
@@ -5467,7 +5909,7 @@ await client.modelSync.targets.getTargetFields("248df4b7-aa70-47b8-a036-33ac447e
-client.modelSync.targets.list(id) -> Polytomic.V4TargetObjectsResponseEnvelope
+client.modelSync.targets.list(id, { ...params }) -> Polytomic.V4TargetObjectsResponseEnvelope
-
@@ -5511,7 +5953,7 @@ what operations the mode supports.
-
```typescript
-await client.modelSync.targets.list("248df4b7-aa70-47b8-a036-33ac447e668d");
+await client.modelSync.targets.list("id");
```
@@ -5535,6 +5977,14 @@ await client.modelSync.targets.list("248df4b7-aa70-47b8-a036-33ac447e668d");
-
+**request:** `Polytomic.modelSync.TargetsListRequest`
+
+
+
+
+
+-
+
**requestOptions:** `Targets.RequestOptions`
@@ -5546,7 +5996,7 @@ await client.modelSync.targets.list("248df4b7-aa70-47b8-a036-33ac447e668d");
-client.modelSync.targets.getCreateProperty(id, property) -> Polytomic.V4TargetPropertyValuesEnvelope
+client.modelSync.targets.getCreateProperty(id, property, { ...params }) -> Polytomic.V4TargetPropertyValuesEnvelope
-
@@ -5603,7 +6053,7 @@ sync](https://apidocs.polytomic.com/2024-02-08/api-reference/model-sync/create).
-
```typescript
-await client.modelSync.targets.getCreateProperty("248df4b7-aa70-47b8-a036-33ac447e668d", "property");
+await client.modelSync.targets.getCreateProperty("id", "property");
```
@@ -5635,6 +6085,14 @@ await client.modelSync.targets.getCreateProperty("248df4b7-aa70-47b8-a036-33ac44
-
+**request:** `Polytomic.modelSync.TargetsGetCreatePropertyRequest`
+
+
+
+
+
+-
+
**requestOptions:** `Targets.RequestOptions`
@@ -5661,11 +6119,7 @@ await client.modelSync.targets.getCreateProperty("248df4b7-aa70-47b8-a036-33ac44
-
```typescript
-await client.modelSync.executions.list("248df4b7-aa70-47b8-a036-33ac447e668d", {
- page_token: "AmkYh8v0jR5B3kls2Qcc9y8MjrPmvR4CvaK7H0F4rEwqvg76K==",
- only_completed: true,
- ascending: true,
-});
+await client.modelSync.executions.list("sync_id");
```
@@ -5708,7 +6162,7 @@ await client.modelSync.executions.list("248df4b7-aa70-47b8-a036-33ac447e668d", {
-client.modelSync.executions.get(syncId, id) -> Polytomic.GetExecutionResponseEnvelope
+client.modelSync.executions.get(syncId, id, { ...params }) -> Polytomic.GetExecutionResponseEnvelope
-
@@ -5721,7 +6175,7 @@ await client.modelSync.executions.list("248df4b7-aa70-47b8-a036-33ac447e668d", {
-
```typescript
-await client.modelSync.executions.get("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d");
+await client.modelSync.executions.get("sync_id", "id");
```
@@ -5753,6 +6207,14 @@ await client.modelSync.executions.get("248df4b7-aa70-47b8-a036-33ac447e668d", "2
-
+**request:** `Polytomic.modelSync.ExecutionsGetRequest`
+
+
+
+
+
+-
+
**requestOptions:** `Executions.RequestOptions`
@@ -5777,13 +6239,9 @@ await client.modelSync.executions.get("248df4b7-aa70-47b8-a036-33ac447e668d", "2
-
```typescript
-await client.modelSync.executions.update(
- "248df4b7-aa70-47b8-a036-33ac447e668d",
- "248df4b7-aa70-47b8-a036-33ac447e668d",
- {
- status: "created",
- },
-);
+await client.modelSync.executions.update("sync_id", "id", {
+ status: "created",
+});
```
@@ -5834,7 +6292,7 @@ await client.modelSync.executions.update(
-client.modelSync.executions.getLogUrls(syncId, id, type_) -> Polytomic.ExecutionLogsResponseEnvelope
+client.modelSync.executions.getLogUrls(syncId, id, type_, { ...params }) -> Polytomic.ExecutionLogsResponseEnvelope
-
@@ -5847,11 +6305,7 @@ await client.modelSync.executions.update(
-
```typescript
-await client.modelSync.executions.getLogUrls(
- "248df4b7-aa70-47b8-a036-33ac447e668d",
- "248df4b7-aa70-47b8-a036-33ac447e668d",
- "records",
-);
+await client.modelSync.executions.getLogUrls("sync_id", "id", "records");
```
@@ -5891,6 +6345,14 @@ await client.modelSync.executions.getLogUrls(
-
+**request:** `Polytomic.modelSync.ExecutionsGetLogUrlsRequest`
+
+
+
+
+
+-
+
**requestOptions:** `Executions.RequestOptions`
@@ -5902,7 +6364,7 @@ await client.modelSync.executions.getLogUrls(
-client.modelSync.executions.getLogs(syncId, id, type_, filename) -> void
+client.modelSync.executions.getLogs(syncId, id, type_, filename, { ...params }) -> void
-
@@ -5915,12 +6377,7 @@ await client.modelSync.executions.getLogUrls(
-
```typescript
-await client.modelSync.executions.getLogs(
- "248df4b7-aa70-47b8-a036-33ac447e668d",
- "0ecd09c1-b901-4d27-9053-f0367c427254",
- "records",
- "path/to/file.json",
-);
+await client.modelSync.executions.getLogs("sync_id", "id", "records", "filename");
```
@@ -5968,6 +6425,14 @@ await client.modelSync.executions.getLogs(
-
+**request:** `Polytomic.modelSync.ExecutionsGetLogsRequest`
+
+
+
+
+
+-
+
**requestOptions:** `Executions.RequestOptions`
@@ -6035,7 +6500,9 @@ await client.permissions.policies.list();
```typescript
await client.permissions.policies.create({
- name: "Custom",
+ name: "name",
+ organization_id: undefined,
+ policy_actions: null,
});
```
@@ -6071,7 +6538,7 @@ await client.permissions.policies.create({
-client.permissions.policies.get(id) -> Polytomic.PolicyResponseEnvelope
+client.permissions.policies.get(id, { ...params }) -> Polytomic.PolicyResponseEnvelope
-
@@ -6084,7 +6551,7 @@ await client.permissions.policies.create({
-
```typescript
-await client.permissions.policies.get("248df4b7-aa70-47b8-a036-33ac447e668d");
+await client.permissions.policies.get("id");
```
@@ -6108,6 +6575,14 @@ await client.permissions.policies.get("248df4b7-aa70-47b8-a036-33ac447e668d");
-
+**request:** `Polytomic.permissions.PoliciesGetRequest`
+
+
+
+
+
+-
+
**requestOptions:** `Policies.RequestOptions`
@@ -6132,8 +6607,10 @@ await client.permissions.policies.get("248df4b7-aa70-47b8-a036-33ac447e668d");
-
```typescript
-await client.permissions.policies.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
- name: "Custom",
+await client.permissions.policies.update("id", {
+ name: "name",
+ organization_id: undefined,
+ policy_actions: null,
});
```
@@ -6177,7 +6654,7 @@ await client.permissions.policies.update("248df4b7-aa70-47b8-a036-33ac447e668d",
-client.permissions.policies.remove(id) -> void
+client.permissions.policies.remove(id, { ...params }) -> void
-
@@ -6190,7 +6667,7 @@ await client.permissions.policies.update("248df4b7-aa70-47b8-a036-33ac447e668d",
-
```typescript
-await client.permissions.policies.remove("248df4b7-aa70-47b8-a036-33ac447e668d");
+await client.permissions.policies.remove("id");
```
@@ -6214,6 +6691,14 @@ await client.permissions.policies.remove("248df4b7-aa70-47b8-a036-33ac447e668d")
-
+**request:** `Polytomic.permissions.PoliciesRemoveRequest`
+
+
+
+
+
+-
+
**requestOptions:** `Policies.RequestOptions`
@@ -6281,7 +6766,8 @@ await client.permissions.roles.list();
```typescript
await client.permissions.roles.create({
- name: "Custom",
+ name: "name",
+ organization_id: undefined,
});
```
@@ -6317,7 +6803,7 @@ await client.permissions.roles.create({
-client.permissions.roles.get(id) -> Polytomic.RoleResponseEnvelope
+client.permissions.roles.get(id, { ...params }) -> Polytomic.RoleResponseEnvelope
-
@@ -6330,7 +6816,7 @@ await client.permissions.roles.create({
-
```typescript
-await client.permissions.roles.get("248df4b7-aa70-47b8-a036-33ac447e668d");
+await client.permissions.roles.get("id");
```
@@ -6354,6 +6840,14 @@ await client.permissions.roles.get("248df4b7-aa70-47b8-a036-33ac447e668d");
-
+**request:** `Polytomic.permissions.RolesGetRequest`
+
+
+
+
+
+-
+
**requestOptions:** `Roles.RequestOptions`
@@ -6378,8 +6872,9 @@ await client.permissions.roles.get("248df4b7-aa70-47b8-a036-33ac447e668d");
-
```typescript
-await client.permissions.roles.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
- name: "Custom",
+await client.permissions.roles.update("id", {
+ name: "name",
+ organization_id: undefined,
});
```
@@ -6423,7 +6918,7 @@ await client.permissions.roles.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
-client.permissions.roles.remove(id) -> void
+client.permissions.roles.remove(id, { ...params }) -> void
-
@@ -6436,7 +6931,7 @@ await client.permissions.roles.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
-
```typescript
-await client.permissions.roles.remove("248df4b7-aa70-47b8-a036-33ac447e668d");
+await client.permissions.roles.remove("id");
```
@@ -6460,6 +6955,14 @@ await client.permissions.roles.remove("248df4b7-aa70-47b8-a036-33ac447e668d");
-
+**request:** `Polytomic.permissions.RolesRemoveRequest`
+
+
+
+
+
+-
+
**requestOptions:** `Roles.RequestOptions`
diff --git a/src/Client.ts b/src/Client.ts
index 27a5473..ce08a6e 100644
--- a/src/Client.ts
+++ b/src/Client.ts
@@ -26,7 +26,7 @@ export declare namespace PolytomicClient {
baseUrl?: core.Supplier;
token: core.Supplier;
/** Override the X-Polytomic-Version header */
- version?: core.Supplier;
+ version?: core.Supplier;
}
export interface RequestOptions {
@@ -37,7 +37,7 @@ export declare namespace PolytomicClient {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the X-Polytomic-Version header */
- version?: string | undefined;
+ version?: unknown;
/** Additional headers to include in the request. */
headers?: Record;
}
diff --git a/src/api/resources/bulkSync/client/Client.ts b/src/api/resources/bulkSync/client/Client.ts
index eb568a4..b81473e 100644
--- a/src/api/resources/bulkSync/client/Client.ts
+++ b/src/api/resources/bulkSync/client/Client.ts
@@ -5,6 +5,7 @@
import * as environments from "../../../../environments";
import * as core from "../../../../core";
import * as Polytomic from "../../../index";
+import { toJson } from "../../../../core/json";
import urlJoin from "url-join";
import * as errors from "../../../../errors/index";
import { Executions } from "../resources/executions/client/Client";
@@ -18,7 +19,7 @@ export declare namespace BulkSync {
baseUrl?: core.Supplier;
token: core.Supplier;
/** Override the X-Polytomic-Version header */
- version?: core.Supplier;
+ version?: core.Supplier;
}
export interface RequestOptions {
@@ -29,7 +30,7 @@ export declare namespace BulkSync {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the X-Polytomic-Version header */
- version?: string | undefined;
+ version?: unknown;
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -62,9 +63,7 @@ export class BulkSync {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.bulkSync.list({
- * active: true
- * })
+ * await client.bulkSync.list()
*/
public async list(
request: Polytomic.BulkSyncListRequest = {},
@@ -72,8 +71,8 @@ export class BulkSync {
): Promise {
const { active } = request;
const _queryParams: Record = {};
- if (active != null) {
- _queryParams["active"] = active.toString();
+ if (active !== undefined) {
+ _queryParams["active"] = active?.toString() ?? null;
}
const _response = await core.fetcher({
@@ -87,13 +86,12 @@ export class BulkSync {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -177,15 +175,37 @@ export class BulkSync {
*
* @example
* await client.bulkSync.create({
+ * active: undefined,
+ * automatically_add_new_fields: undefined,
+ * automatically_add_new_objects: undefined,
+ * concurrency_limit: undefined,
+ * data_cutoff_timestamp: undefined,
* destination_configuration: {
- * "schema": "my_schema"
+ * "destination_configuration": {
+ * "key": "value"
+ * }
* },
- * destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
- * name: "My Bulk Sync",
+ * destination_connection_id: "destination_connection_id",
+ * disable_record_timestamps: undefined,
+ * discover: undefined,
+ * mode: null,
+ * name: "name",
+ * normalize_names: undefined,
+ * organization_id: undefined,
+ * policies: undefined,
+ * resync_concurrency_limit: undefined,
* schedule: {
- * frequency: "manual"
+ * day_of_month: undefined,
+ * day_of_week: undefined,
+ * frequency: "manual",
+ * hour: undefined,
+ * minute: undefined,
+ * month: undefined,
+ * multi: undefined
* },
- * source_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
+ * schemas: undefined,
+ * source_configuration: undefined,
+ * source_connection_id: "source_connection_id"
* })
*/
public async create(
@@ -203,13 +223,12 @@ export class BulkSync {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -269,9 +288,7 @@ export class BulkSync {
* @throws {@link Polytomic.NotFoundError}
*
* @example
- * await client.bulkSync.get("248df4b7-aa70-47b8-a036-33ac447e668d", {
- * refresh_schemas: true
- * })
+ * await client.bulkSync.get("id")
*/
public async get(
id: string,
@@ -295,13 +312,12 @@ export class BulkSync {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -362,16 +378,38 @@ export class BulkSync {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.bulkSync.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
+ * await client.bulkSync.update("id", {
+ * active: undefined,
+ * automatically_add_new_fields: undefined,
+ * automatically_add_new_objects: undefined,
+ * concurrency_limit: undefined,
+ * data_cutoff_timestamp: undefined,
* destination_configuration: {
- * "schema": "my_schema"
+ * "destination_configuration": {
+ * "key": "value"
+ * }
* },
- * destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
- * name: "My Bulk Sync",
+ * destination_connection_id: "destination_connection_id",
+ * disable_record_timestamps: undefined,
+ * discover: undefined,
+ * mode: null,
+ * name: "name",
+ * normalize_names: undefined,
+ * organization_id: undefined,
+ * policies: undefined,
+ * resync_concurrency_limit: undefined,
* schedule: {
- * frequency: "manual"
+ * day_of_month: undefined,
+ * day_of_week: undefined,
+ * frequency: "manual",
+ * hour: undefined,
+ * minute: undefined,
+ * month: undefined,
+ * multi: undefined
* },
- * source_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
+ * schemas: undefined,
+ * source_configuration: undefined,
+ * source_connection_id: "source_connection_id"
* })
*/
public async update(
@@ -390,13 +428,12 @@ export class BulkSync {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -458,9 +495,7 @@ export class BulkSync {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.bulkSync.remove("248df4b7-aa70-47b8-a036-33ac447e668d", {
- * refresh_schemas: true
- * })
+ * await client.bulkSync.remove("id")
*/
public async remove(
id: string,
@@ -484,13 +519,12 @@ export class BulkSync {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -541,7 +575,7 @@ export class BulkSync {
/**
* @param {string} id
- * @param {Polytomic.ActivateSyncInput} request
+ * @param {Polytomic.BulkSyncActivateRequest} request
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Polytomic.UnauthorizedError}
@@ -550,13 +584,15 @@ export class BulkSync {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.bulkSync.activate("248df4b7-aa70-47b8-a036-33ac447e668d", {
- * active: true
+ * await client.bulkSync.activate("id", {
+ * body: {
+ * active: true
+ * }
* })
*/
public async activate(
id: string,
- request: Polytomic.ActivateSyncInput,
+ request: Polytomic.BulkSyncActivateRequest,
requestOptions?: BulkSync.RequestOptions,
): Promise {
const _response = await core.fetcher({
@@ -570,13 +606,12 @@ export class BulkSync {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -637,7 +672,12 @@ export class BulkSync {
* @throws {@link Polytomic.ConflictError}
*
* @example
- * await client.bulkSync.start("248df4b7-aa70-47b8-a036-33ac447e668d")
+ * await client.bulkSync.start("id", {
+ * fetch_mode: undefined,
+ * resync: undefined,
+ * schemas: undefined,
+ * test: undefined
+ * })
*/
public async start(
id: string,
@@ -655,13 +695,12 @@ export class BulkSync {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -712,6 +751,7 @@ export class BulkSync {
/**
* @param {string} id
+ * @param {Polytomic.BulkSyncGetStatusRequest} request
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Polytomic.UnauthorizedError}
@@ -719,10 +759,11 @@ export class BulkSync {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.bulkSync.getStatus("248df4b7-aa70-47b8-a036-33ac447e668d")
+ * await client.bulkSync.getStatus("id")
*/
public async getStatus(
id: string,
+ request: Polytomic.BulkSyncGetStatusRequest = {},
requestOptions?: BulkSync.RequestOptions,
): Promise {
const _response = await core.fetcher({
@@ -736,13 +777,12 @@ export class BulkSync {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -801,9 +841,7 @@ export class BulkSync {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.bulkSync.getSource("248df4b7-aa70-47b8-a036-33ac447e668d", {
- * include_fields: true
- * })
+ * await client.bulkSync.getSource("id")
*/
public async getSource(
id: string,
@@ -827,13 +865,12 @@ export class BulkSync {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -886,6 +923,7 @@ export class BulkSync {
/**
* @param {string} id
+ * @param {Polytomic.BulkSyncGetDestinationRequest} request
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Polytomic.BadRequestError}
@@ -894,10 +932,11 @@ export class BulkSync {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.bulkSync.getDestination("248df4b7-aa70-47b8-a036-33ac447e668d")
+ * await client.bulkSync.getDestination("id")
*/
public async getDestination(
id: string,
+ request: Polytomic.BulkSyncGetDestinationRequest = {},
requestOptions?: BulkSync.RequestOptions,
): Promise {
const _response = await core.fetcher({
@@ -911,13 +950,12 @@ export class BulkSync {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/bulkSync/client/requests/BulkSyncActivateRequest.ts b/src/api/resources/bulkSync/client/requests/BulkSyncActivateRequest.ts
new file mode 100644
index 0000000..d4f3ad4
--- /dev/null
+++ b/src/api/resources/bulkSync/client/requests/BulkSyncActivateRequest.ts
@@ -0,0 +1,17 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as Polytomic from "../../../../index";
+
+/**
+ * @example
+ * {
+ * body: {
+ * active: true
+ * }
+ * }
+ */
+export interface BulkSyncActivateRequest {
+ body: Polytomic.ActivateSyncInput;
+}
diff --git a/src/api/resources/bulkSync/client/requests/BulkSyncGetDestinationRequest.ts b/src/api/resources/bulkSync/client/requests/BulkSyncGetDestinationRequest.ts
new file mode 100644
index 0000000..b3d84ce
--- /dev/null
+++ b/src/api/resources/bulkSync/client/requests/BulkSyncGetDestinationRequest.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface BulkSyncGetDestinationRequest {}
diff --git a/src/api/resources/bulkSync/client/requests/BulkSyncGetRequest.ts b/src/api/resources/bulkSync/client/requests/BulkSyncGetRequest.ts
index de9bb6c..710b198 100644
--- a/src/api/resources/bulkSync/client/requests/BulkSyncGetRequest.ts
+++ b/src/api/resources/bulkSync/client/requests/BulkSyncGetRequest.ts
@@ -4,9 +4,7 @@
/**
* @example
- * {
- * refresh_schemas: true
- * }
+ * {}
*/
export interface BulkSyncGetRequest {
refresh_schemas?: boolean;
diff --git a/src/api/resources/bulkSync/client/requests/BulkSyncGetSourceRequest.ts b/src/api/resources/bulkSync/client/requests/BulkSyncGetSourceRequest.ts
index 3919e6e..7daa8e2 100644
--- a/src/api/resources/bulkSync/client/requests/BulkSyncGetSourceRequest.ts
+++ b/src/api/resources/bulkSync/client/requests/BulkSyncGetSourceRequest.ts
@@ -4,9 +4,7 @@
/**
* @example
- * {
- * include_fields: true
- * }
+ * {}
*/
export interface BulkSyncGetSourceRequest {
include_fields?: boolean;
diff --git a/src/api/resources/bulkSync/client/requests/BulkSyncGetStatusRequest.ts b/src/api/resources/bulkSync/client/requests/BulkSyncGetStatusRequest.ts
new file mode 100644
index 0000000..3a8f672
--- /dev/null
+++ b/src/api/resources/bulkSync/client/requests/BulkSyncGetStatusRequest.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface BulkSyncGetStatusRequest {}
diff --git a/src/api/resources/bulkSync/client/requests/BulkSyncListRequest.ts b/src/api/resources/bulkSync/client/requests/BulkSyncListRequest.ts
index 5577bc4..671e8ac 100644
--- a/src/api/resources/bulkSync/client/requests/BulkSyncListRequest.ts
+++ b/src/api/resources/bulkSync/client/requests/BulkSyncListRequest.ts
@@ -4,10 +4,8 @@
/**
* @example
- * {
- * active: true
- * }
+ * {}
*/
export interface BulkSyncListRequest {
- active?: boolean;
+ active?: boolean | null;
}
diff --git a/src/api/resources/bulkSync/client/requests/BulkSyncRemoveRequest.ts b/src/api/resources/bulkSync/client/requests/BulkSyncRemoveRequest.ts
index 6a39ae7..a4a912d 100644
--- a/src/api/resources/bulkSync/client/requests/BulkSyncRemoveRequest.ts
+++ b/src/api/resources/bulkSync/client/requests/BulkSyncRemoveRequest.ts
@@ -4,9 +4,7 @@
/**
* @example
- * {
- * refresh_schemas: true
- * }
+ * {}
*/
export interface BulkSyncRemoveRequest {
refresh_schemas?: boolean;
diff --git a/src/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.ts b/src/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.ts
index 04f98c5..1ee3b5e 100644
--- a/src/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.ts
+++ b/src/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.ts
@@ -7,39 +7,61 @@ import * as Polytomic from "../../../../index";
/**
* @example
* {
+ * active: undefined,
+ * automatically_add_new_fields: undefined,
+ * automatically_add_new_objects: undefined,
+ * concurrency_limit: undefined,
+ * data_cutoff_timestamp: undefined,
* destination_configuration: {
- * "schema": "my_schema"
+ * "destination_configuration": {
+ * "key": "value"
+ * }
* },
- * destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
- * name: "My Bulk Sync",
+ * destination_connection_id: "destination_connection_id",
+ * disable_record_timestamps: undefined,
+ * discover: undefined,
+ * mode: null,
+ * name: "name",
+ * normalize_names: undefined,
+ * organization_id: undefined,
+ * policies: undefined,
+ * resync_concurrency_limit: undefined,
* schedule: {
- * frequency: "manual"
+ * day_of_month: undefined,
+ * day_of_week: undefined,
+ * frequency: "manual",
+ * hour: undefined,
+ * minute: undefined,
+ * month: undefined,
+ * multi: undefined
* },
- * source_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
+ * schemas: undefined,
+ * source_configuration: undefined,
+ * source_connection_id: "source_connection_id"
* }
*/
export interface CreateBulkSyncRequest {
- active?: boolean;
- automatically_add_new_fields?: Polytomic.BulkDiscover;
- automatically_add_new_objects?: Polytomic.BulkDiscover;
+ active?: boolean | null;
+ automatically_add_new_fields?: Polytomic.BulkDiscover | null;
+ automatically_add_new_objects?: Polytomic.BulkDiscover | null;
/** Override the default concurrency limit for this sync. */
- concurrency_limit?: number;
- data_cutoff_timestamp?: string;
+ concurrency_limit?: number | null;
+ data_cutoff_timestamp?: string | null;
destination_configuration: Record;
destination_connection_id: string;
- disable_record_timestamps?: boolean;
+ disable_record_timestamps?: boolean | null;
/** DEPRECATED: Use automatically_add_new_objects/automatically_add_new_fields instead */
- discover?: boolean;
- mode?: Polytomic.BulkSyncMode;
+ discover?: boolean | null;
+ mode: Polytomic.BulkSyncMode | null;
name: string;
- normalize_names?: Polytomic.BulkNormalizeNames;
- organization_id?: string;
- policies?: string[];
+ normalize_names?: Polytomic.BulkNormalizeNames | null;
+ organization_id?: string | null;
+ policies?: string[] | null;
/** Override the default resync concurrency limit for this sync. */
- resync_concurrency_limit?: number;
+ resync_concurrency_limit?: number | null;
schedule: Polytomic.BulkSchedule;
/** List of schemas to sync; if omitted, all schemas will be selected for syncing. */
- schemas?: Polytomic.V2CreateBulkSyncRequestSchemasItem[];
- source_configuration?: Record;
+ schemas?: Polytomic.V2CreateBulkSyncRequestSchemasItem[] | null;
+ source_configuration?: Record | null;
source_connection_id: string;
}
diff --git a/src/api/resources/bulkSync/client/requests/StartBulkSyncRequest.ts b/src/api/resources/bulkSync/client/requests/StartBulkSyncRequest.ts
index defc26c..75b3da1 100644
--- a/src/api/resources/bulkSync/client/requests/StartBulkSyncRequest.ts
+++ b/src/api/resources/bulkSync/client/requests/StartBulkSyncRequest.ts
@@ -6,11 +6,16 @@ import * as Polytomic from "../../../../index";
/**
* @example
- * {}
+ * {
+ * fetch_mode: undefined,
+ * resync: undefined,
+ * schemas: undefined,
+ * test: undefined
+ * }
*/
export interface StartBulkSyncRequest {
fetch_mode?: Polytomic.BulkFetchMode;
resync?: boolean;
- schemas?: string[];
+ schemas?: string[] | null;
test?: boolean;
}
diff --git a/src/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.ts b/src/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.ts
index 2977396..ed43b7f 100644
--- a/src/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.ts
+++ b/src/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.ts
@@ -7,39 +7,61 @@ import * as Polytomic from "../../../../index";
/**
* @example
* {
+ * active: undefined,
+ * automatically_add_new_fields: undefined,
+ * automatically_add_new_objects: undefined,
+ * concurrency_limit: undefined,
+ * data_cutoff_timestamp: undefined,
* destination_configuration: {
- * "schema": "my_schema"
+ * "destination_configuration": {
+ * "key": "value"
+ * }
* },
- * destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
- * name: "My Bulk Sync",
+ * destination_connection_id: "destination_connection_id",
+ * disable_record_timestamps: undefined,
+ * discover: undefined,
+ * mode: null,
+ * name: "name",
+ * normalize_names: undefined,
+ * organization_id: undefined,
+ * policies: undefined,
+ * resync_concurrency_limit: undefined,
* schedule: {
- * frequency: "manual"
+ * day_of_month: undefined,
+ * day_of_week: undefined,
+ * frequency: "manual",
+ * hour: undefined,
+ * minute: undefined,
+ * month: undefined,
+ * multi: undefined
* },
- * source_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
+ * schemas: undefined,
+ * source_configuration: undefined,
+ * source_connection_id: "source_connection_id"
* }
*/
export interface UpdateBulkSyncRequest {
- active?: boolean;
- automatically_add_new_fields?: Polytomic.BulkDiscover;
- automatically_add_new_objects?: Polytomic.BulkDiscover;
+ active?: boolean | null;
+ automatically_add_new_fields?: Polytomic.BulkDiscover | null;
+ automatically_add_new_objects?: Polytomic.BulkDiscover | null;
/** Override the default concurrency limit for this sync. */
- concurrency_limit?: number;
- data_cutoff_timestamp?: string;
+ concurrency_limit?: number | null;
+ data_cutoff_timestamp?: string | null;
destination_configuration: Record;
destination_connection_id: string;
- disable_record_timestamps?: boolean;
+ disable_record_timestamps?: boolean | null;
/** DEPRECATED: Use automatically_add_new_objects/automatically_add_new_fields instead */
- discover?: boolean;
- mode?: Polytomic.BulkSyncMode;
+ discover?: boolean | null;
+ mode: Polytomic.BulkSyncMode | null;
name: string;
- normalize_names?: Polytomic.BulkNormalizeNames;
- organization_id?: string;
- policies?: string[];
+ normalize_names?: Polytomic.BulkNormalizeNames | null;
+ organization_id?: string | null;
+ policies?: string[] | null;
/** Override the default resync concurrency limit for this sync. */
- resync_concurrency_limit?: number;
+ resync_concurrency_limit?: number | null;
schedule: Polytomic.BulkSchedule;
/** List of schemas to sync; if omitted, all schemas will be selected for syncing. */
- schemas?: Polytomic.V2UpdateBulkSyncRequestSchemasItem[];
- source_configuration?: Record;
+ schemas?: Polytomic.V2UpdateBulkSyncRequestSchemasItem[] | null;
+ source_configuration?: Record | null;
source_connection_id: string;
}
diff --git a/src/api/resources/bulkSync/client/requests/index.ts b/src/api/resources/bulkSync/client/requests/index.ts
index 6e3f75a..55b8a31 100644
--- a/src/api/resources/bulkSync/client/requests/index.ts
+++ b/src/api/resources/bulkSync/client/requests/index.ts
@@ -3,5 +3,8 @@ export { type CreateBulkSyncRequest } from "./CreateBulkSyncRequest";
export { type BulkSyncGetRequest } from "./BulkSyncGetRequest";
export { type UpdateBulkSyncRequest } from "./UpdateBulkSyncRequest";
export { type BulkSyncRemoveRequest } from "./BulkSyncRemoveRequest";
+export { type BulkSyncActivateRequest } from "./BulkSyncActivateRequest";
export { type StartBulkSyncRequest } from "./StartBulkSyncRequest";
+export { type BulkSyncGetStatusRequest } from "./BulkSyncGetStatusRequest";
export { type BulkSyncGetSourceRequest } from "./BulkSyncGetSourceRequest";
+export { type BulkSyncGetDestinationRequest } from "./BulkSyncGetDestinationRequest";
diff --git a/src/api/resources/bulkSync/resources/executions/client/Client.ts b/src/api/resources/bulkSync/resources/executions/client/Client.ts
index 90ee55c..d5ac6db 100644
--- a/src/api/resources/bulkSync/resources/executions/client/Client.ts
+++ b/src/api/resources/bulkSync/resources/executions/client/Client.ts
@@ -5,6 +5,7 @@
import * as environments from "../../../../../../environments";
import * as core from "../../../../../../core";
import * as Polytomic from "../../../../../index";
+import { toJson } from "../../../../../../core/json";
import urlJoin from "url-join";
import * as errors from "../../../../../../errors/index";
@@ -15,7 +16,7 @@ export declare namespace Executions {
baseUrl?: core.Supplier;
token: core.Supplier;
/** Override the X-Polytomic-Version header */
- version?: core.Supplier;
+ version?: core.Supplier;
}
export interface RequestOptions {
@@ -26,7 +27,7 @@ export declare namespace Executions {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the X-Polytomic-Version header */
- version?: string | undefined;
+ version?: unknown;
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -43,10 +44,7 @@ export class Executions {
* @throws {@link Polytomic.NotFoundError}
*
* @example
- * await client.bulkSync.executions.listStatus({
- * all: true,
- * active: true
- * })
+ * await client.bulkSync.executions.listStatus()
*/
public async listStatus(
request: Polytomic.bulkSync.ExecutionsListStatusRequest = {},
@@ -81,13 +79,12 @@ export class Executions {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -141,12 +138,7 @@ export class Executions {
* @throws {@link Polytomic.NotFoundError}
*
* @example
- * await client.bulkSync.executions.list("248df4b7-aa70-47b8-a036-33ac447e668d", {
- * page_token: "AmkYh8v0jR5B3kls2Qcc9y8MjrPmvR4CvaK7H0F4rEwqvg76K==",
- * only_terminal: true,
- * ascending: true,
- * limit: 100
- * })
+ * await client.bulkSync.executions.list("id")
*/
public async list(
id: string,
@@ -182,13 +174,12 @@ export class Executions {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -238,17 +229,19 @@ export class Executions {
/**
* @param {string} id
* @param {string} execId
+ * @param {Polytomic.bulkSync.ExecutionsGetRequest} request
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Polytomic.UnauthorizedError}
* @throws {@link Polytomic.NotFoundError}
*
* @example
- * await client.bulkSync.executions.get("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
+ * await client.bulkSync.executions.get("id", "exec_id")
*/
public async get(
id: string,
execId: string,
+ request: Polytomic.bulkSync.ExecutionsGetRequest = {},
requestOptions?: Executions.RequestOptions,
): Promise {
const _response = await core.fetcher({
@@ -262,13 +255,12 @@ export class Executions {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -317,17 +309,19 @@ export class Executions {
/**
* @param {string} syncId
* @param {string} executionId
+ * @param {Polytomic.bulkSync.ExecutionsGetLogsRequest} request
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Polytomic.UnauthorizedError}
* @throws {@link Polytomic.NotFoundError}
*
* @example
- * await client.bulkSync.executions.getLogs("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
+ * await client.bulkSync.executions.getLogs("sync_id", "execution_id")
*/
public async getLogs(
syncId: string,
executionId: string,
+ request: Polytomic.bulkSync.ExecutionsGetLogsRequest = {},
requestOptions?: Executions.RequestOptions,
): Promise {
const _response = await core.fetcher({
@@ -341,13 +335,12 @@ export class Executions {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -405,7 +398,7 @@ export class Executions {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.bulkSync.executions.exportLogs("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
+ * await client.bulkSync.executions.exportLogs("sync_id", "execution_id")
*/
public async exportLogs(
syncId: string,
@@ -430,13 +423,12 @@ export class Executions {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/bulkSync/resources/executions/client/requests/ExecutionsGetLogsRequest.ts b/src/api/resources/bulkSync/resources/executions/client/requests/ExecutionsGetLogsRequest.ts
new file mode 100644
index 0000000..c86c387
--- /dev/null
+++ b/src/api/resources/bulkSync/resources/executions/client/requests/ExecutionsGetLogsRequest.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface ExecutionsGetLogsRequest {}
diff --git a/src/api/resources/bulkSync/resources/executions/client/requests/ExecutionsGetRequest.ts b/src/api/resources/bulkSync/resources/executions/client/requests/ExecutionsGetRequest.ts
new file mode 100644
index 0000000..910b395
--- /dev/null
+++ b/src/api/resources/bulkSync/resources/executions/client/requests/ExecutionsGetRequest.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface ExecutionsGetRequest {}
diff --git a/src/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListRequest.ts b/src/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListRequest.ts
index 3b69218..dd304ff 100644
--- a/src/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListRequest.ts
+++ b/src/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListRequest.ts
@@ -4,12 +4,7 @@
/**
* @example
- * {
- * page_token: "AmkYh8v0jR5B3kls2Qcc9y8MjrPmvR4CvaK7H0F4rEwqvg76K==",
- * only_terminal: true,
- * ascending: true,
- * limit: 100
- * }
+ * {}
*/
export interface ExecutionsListRequest {
page_token?: string;
diff --git a/src/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListStatusRequest.ts b/src/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListStatusRequest.ts
index a50de17..05d098e 100644
--- a/src/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListStatusRequest.ts
+++ b/src/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListStatusRequest.ts
@@ -4,10 +4,7 @@
/**
* @example
- * {
- * all: true,
- * active: true
- * }
+ * {}
*/
export interface ExecutionsListStatusRequest {
/**
diff --git a/src/api/resources/bulkSync/resources/executions/client/requests/index.ts b/src/api/resources/bulkSync/resources/executions/client/requests/index.ts
index 92a7577..b1129ba 100644
--- a/src/api/resources/bulkSync/resources/executions/client/requests/index.ts
+++ b/src/api/resources/bulkSync/resources/executions/client/requests/index.ts
@@ -1,3 +1,5 @@
export { type ExecutionsListStatusRequest } from "./ExecutionsListStatusRequest";
export { type ExecutionsListRequest } from "./ExecutionsListRequest";
+export { type ExecutionsGetRequest } from "./ExecutionsGetRequest";
+export { type ExecutionsGetLogsRequest } from "./ExecutionsGetLogsRequest";
export { type ExecutionsExportLogsRequest } from "./ExecutionsExportLogsRequest";
diff --git a/src/api/resources/bulkSync/resources/schedules/client/Client.ts b/src/api/resources/bulkSync/resources/schedules/client/Client.ts
index 52eae81..bf19b52 100644
--- a/src/api/resources/bulkSync/resources/schedules/client/Client.ts
+++ b/src/api/resources/bulkSync/resources/schedules/client/Client.ts
@@ -5,6 +5,7 @@
import * as environments from "../../../../../../environments";
import * as core from "../../../../../../core";
import * as Polytomic from "../../../../../index";
+import { toJson } from "../../../../../../core/json";
import urlJoin from "url-join";
import * as errors from "../../../../../../errors/index";
@@ -15,7 +16,7 @@ export declare namespace Schedules {
baseUrl?: core.Supplier;
token: core.Supplier;
/** Override the X-Polytomic-Version header */
- version?: core.Supplier;
+ version?: core.Supplier;
}
export interface RequestOptions {
@@ -26,7 +27,7 @@ export declare namespace Schedules {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the X-Polytomic-Version header */
- version?: string | undefined;
+ version?: unknown;
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -37,6 +38,7 @@ export class Schedules {
/**
* @param {string} syncId
+ * @param {Polytomic.bulkSync.SchedulesListRequest} request
* @param {Schedules.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Polytomic.UnauthorizedError}
@@ -45,9 +47,13 @@ export class Schedules {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.bulkSync.schedules.list("248df4b7-aa70-47b8-a036-33ac447e668d")
+ * await client.bulkSync.schedules.list("sync_id")
*/
- public async list(syncId: string, requestOptions?: Schedules.RequestOptions): Promise {
+ public async list(
+ syncId: string,
+ request: Polytomic.bulkSync.SchedulesListRequest = {},
+ requestOptions?: Schedules.RequestOptions,
+ ): Promise {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.baseUrl)) ??
@@ -59,13 +65,12 @@ export class Schedules {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -127,9 +132,15 @@ export class Schedules {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.bulkSync.schedules.create("248df4b7-aa70-47b8-a036-33ac447e668d", {
+ * await client.bulkSync.schedules.create("sync_id", {
* schedule: {
- * frequency: "manual"
+ * dayOfMonth: undefined,
+ * dayOfWeek: undefined,
+ * frequency: "manual",
+ * hour: undefined,
+ * minute: undefined,
+ * month: undefined,
+ * selectiveMode: undefined
* }
* })
*/
@@ -149,13 +160,12 @@ export class Schedules {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -211,6 +221,7 @@ export class Schedules {
/**
* @param {string} syncId
* @param {string} scheduleId
+ * @param {Polytomic.bulkSync.SchedulesGetRequest} request
* @param {Schedules.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Polytomic.UnauthorizedError}
@@ -219,11 +230,12 @@ export class Schedules {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.bulkSync.schedules.get("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
+ * await client.bulkSync.schedules.get("sync_id", "schedule_id")
*/
public async get(
syncId: string,
scheduleId: string,
+ request: Polytomic.bulkSync.SchedulesGetRequest = {},
requestOptions?: Schedules.RequestOptions,
): Promise {
const _response = await core.fetcher({
@@ -237,13 +249,12 @@ export class Schedules {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -306,9 +317,15 @@ export class Schedules {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.bulkSync.schedules.update("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
+ * await client.bulkSync.schedules.update("sync_id", "schedule_id", {
* schedule: {
- * frequency: "manual"
+ * dayOfMonth: undefined,
+ * dayOfWeek: undefined,
+ * frequency: "manual",
+ * hour: undefined,
+ * minute: undefined,
+ * month: undefined,
+ * selectiveMode: undefined
* }
* })
*/
@@ -329,13 +346,12 @@ export class Schedules {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -391,6 +407,7 @@ export class Schedules {
/**
* @param {string} syncId
* @param {string} scheduleId
+ * @param {Polytomic.bulkSync.SchedulesDeleteRequest} request
* @param {Schedules.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Polytomic.UnauthorizedError}
@@ -399,9 +416,14 @@ export class Schedules {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.bulkSync.schedules.delete("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
+ * await client.bulkSync.schedules.delete("sync_id", "schedule_id")
*/
- public async delete(syncId: string, scheduleId: string, requestOptions?: Schedules.RequestOptions): Promise {
+ public async delete(
+ syncId: string,
+ scheduleId: string,
+ request: Polytomic.bulkSync.SchedulesDeleteRequest = {},
+ requestOptions?: Schedules.RequestOptions,
+ ): Promise {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.baseUrl)) ??
@@ -413,13 +435,12 @@ export class Schedules {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/bulkSync/resources/schedules/client/requests/CreateScheduleRequest.ts b/src/api/resources/bulkSync/resources/schedules/client/requests/CreateScheduleRequest.ts
index ce6f702..b90a38e 100644
--- a/src/api/resources/bulkSync/resources/schedules/client/requests/CreateScheduleRequest.ts
+++ b/src/api/resources/bulkSync/resources/schedules/client/requests/CreateScheduleRequest.ts
@@ -8,7 +8,13 @@ import * as Polytomic from "../../../../../../index";
* @example
* {
* schedule: {
- * frequency: "manual"
+ * dayOfMonth: undefined,
+ * dayOfWeek: undefined,
+ * frequency: "manual",
+ * hour: undefined,
+ * minute: undefined,
+ * month: undefined,
+ * selectiveMode: undefined
* }
* }
*/
diff --git a/src/api/resources/bulkSync/resources/schedules/client/requests/SchedulesDeleteRequest.ts b/src/api/resources/bulkSync/resources/schedules/client/requests/SchedulesDeleteRequest.ts
new file mode 100644
index 0000000..c852be1
--- /dev/null
+++ b/src/api/resources/bulkSync/resources/schedules/client/requests/SchedulesDeleteRequest.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface SchedulesDeleteRequest {}
diff --git a/src/api/resources/bulkSync/resources/schedules/client/requests/SchedulesGetRequest.ts b/src/api/resources/bulkSync/resources/schedules/client/requests/SchedulesGetRequest.ts
new file mode 100644
index 0000000..d971c1e
--- /dev/null
+++ b/src/api/resources/bulkSync/resources/schedules/client/requests/SchedulesGetRequest.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface SchedulesGetRequest {}
diff --git a/src/api/resources/bulkSync/resources/schedules/client/requests/SchedulesListRequest.ts b/src/api/resources/bulkSync/resources/schedules/client/requests/SchedulesListRequest.ts
new file mode 100644
index 0000000..245e625
--- /dev/null
+++ b/src/api/resources/bulkSync/resources/schedules/client/requests/SchedulesListRequest.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface SchedulesListRequest {}
diff --git a/src/api/resources/bulkSync/resources/schedules/client/requests/UpdateScheduleRequest.ts b/src/api/resources/bulkSync/resources/schedules/client/requests/UpdateScheduleRequest.ts
index 3c7c1f8..6f047de 100644
--- a/src/api/resources/bulkSync/resources/schedules/client/requests/UpdateScheduleRequest.ts
+++ b/src/api/resources/bulkSync/resources/schedules/client/requests/UpdateScheduleRequest.ts
@@ -8,7 +8,13 @@ import * as Polytomic from "../../../../../../index";
* @example
* {
* schedule: {
- * frequency: "manual"
+ * dayOfMonth: undefined,
+ * dayOfWeek: undefined,
+ * frequency: "manual",
+ * hour: undefined,
+ * minute: undefined,
+ * month: undefined,
+ * selectiveMode: undefined
* }
* }
*/
diff --git a/src/api/resources/bulkSync/resources/schedules/client/requests/index.ts b/src/api/resources/bulkSync/resources/schedules/client/requests/index.ts
index ea4a1f8..d64ab1c 100644
--- a/src/api/resources/bulkSync/resources/schedules/client/requests/index.ts
+++ b/src/api/resources/bulkSync/resources/schedules/client/requests/index.ts
@@ -1,2 +1,5 @@
+export { type SchedulesListRequest } from "./SchedulesListRequest";
export { type CreateScheduleRequest } from "./CreateScheduleRequest";
+export { type SchedulesGetRequest } from "./SchedulesGetRequest";
export { type UpdateScheduleRequest } from "./UpdateScheduleRequest";
+export { type SchedulesDeleteRequest } from "./SchedulesDeleteRequest";
diff --git a/src/api/resources/bulkSync/resources/schemas/client/Client.ts b/src/api/resources/bulkSync/resources/schemas/client/Client.ts
index 5361027..2927cfe 100644
--- a/src/api/resources/bulkSync/resources/schemas/client/Client.ts
+++ b/src/api/resources/bulkSync/resources/schemas/client/Client.ts
@@ -16,7 +16,7 @@ export declare namespace Schemas {
baseUrl?: core.Supplier;
token: core.Supplier;
/** Override the X-Polytomic-Version header */
- version?: core.Supplier;
+ version?: core.Supplier;
}
export interface RequestOptions {
@@ -27,7 +27,7 @@ export declare namespace Schemas {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the X-Polytomic-Version header */
- version?: string | undefined;
+ version?: unknown;
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -45,7 +45,7 @@ export class Schemas {
* @throws {@link Polytomic.NotFoundError}
*
* @example
- * await client.bulkSync.schemas.list("248df4b7-aa70-47b8-a036-33ac447e668d")
+ * await client.bulkSync.schemas.list("id")
*/
public async list(
id: string,
@@ -69,13 +69,12 @@ export class Schemas {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -134,7 +133,9 @@ export class Schemas {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.bulkSync.schemas.patch("248df4b7-aa70-47b8-a036-33ac447e668d")
+ * await client.bulkSync.schemas.patch("id", {
+ * schemas: undefined
+ * })
*/
public async patch(
id: string,
@@ -152,13 +153,12 @@ export class Schemas {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -214,17 +214,19 @@ export class Schemas {
/**
* @param {string} id
* @param {string} schemaId
+ * @param {Polytomic.bulkSync.SchemasGetRequest} request
* @param {Schemas.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Polytomic.UnauthorizedError}
* @throws {@link Polytomic.NotFoundError}
*
* @example
- * await client.bulkSync.schemas.get("248df4b7-aa70-47b8-a036-33ac447e668d", "Contact")
+ * await client.bulkSync.schemas.get("id", "schema_id")
*/
public async get(
id: string,
schemaId: string,
+ request: Polytomic.bulkSync.SchemasGetRequest = {},
requestOptions?: Schemas.RequestOptions,
): Promise {
const _response = await core.fetcher({
@@ -238,13 +240,12 @@ export class Schemas {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -302,7 +303,16 @@ export class Schemas {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.bulkSync.schemas.update("248df4b7-aa70-47b8-a036-33ac447e668d", "contact")
+ * await client.bulkSync.schemas.update("id", "schema_id", {
+ * data_cutoff_timestamp: undefined,
+ * disable_data_cutoff: undefined,
+ * enabled: undefined,
+ * fields: undefined,
+ * filters: undefined,
+ * partition_key: undefined,
+ * tracking_field: undefined,
+ * user_output_name: undefined
+ * })
*/
public async update(
id: string,
@@ -321,13 +331,12 @@ export class Schemas {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/bulkSync/resources/schemas/client/requests/BulkSyncSchemasRequest.ts b/src/api/resources/bulkSync/resources/schemas/client/requests/BulkSyncSchemasRequest.ts
index b3fb024..fbd34c1 100644
--- a/src/api/resources/bulkSync/resources/schemas/client/requests/BulkSyncSchemasRequest.ts
+++ b/src/api/resources/bulkSync/resources/schemas/client/requests/BulkSyncSchemasRequest.ts
@@ -6,8 +6,10 @@ import * as Polytomic from "../../../../../../index";
/**
* @example
- * {}
+ * {
+ * schemas: undefined
+ * }
*/
export interface BulkSyncSchemasRequest {
- schemas?: Polytomic.BulkSchema[];
+ schemas?: Polytomic.BulkSchema[] | null;
}
diff --git a/src/api/resources/bulkSync/resources/schemas/client/requests/SchemasGetRequest.ts b/src/api/resources/bulkSync/resources/schemas/client/requests/SchemasGetRequest.ts
new file mode 100644
index 0000000..d53054a
--- /dev/null
+++ b/src/api/resources/bulkSync/resources/schemas/client/requests/SchemasGetRequest.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface SchemasGetRequest {}
diff --git a/src/api/resources/bulkSync/resources/schemas/client/requests/SchemasListRequest.ts b/src/api/resources/bulkSync/resources/schemas/client/requests/SchemasListRequest.ts
index 11284e1..64dfd92 100644
--- a/src/api/resources/bulkSync/resources/schemas/client/requests/SchemasListRequest.ts
+++ b/src/api/resources/bulkSync/resources/schemas/client/requests/SchemasListRequest.ts
@@ -7,5 +7,5 @@
* {}
*/
export interface SchemasListRequest {
- filters?: Record;
+ filters?: Record;
}
diff --git a/src/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.ts b/src/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.ts
index 3b98414..ebdc948 100644
--- a/src/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.ts
+++ b/src/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.ts
@@ -6,14 +6,23 @@ import * as Polytomic from "../../../../../../index";
/**
* @example
- * {}
+ * {
+ * data_cutoff_timestamp: undefined,
+ * disable_data_cutoff: undefined,
+ * enabled: undefined,
+ * fields: undefined,
+ * filters: undefined,
+ * partition_key: undefined,
+ * tracking_field: undefined,
+ * user_output_name: undefined
+ * }
*/
export interface UpdateBulkSchema {
- data_cutoff_timestamp?: string;
+ data_cutoff_timestamp?: string | null;
disable_data_cutoff?: boolean;
enabled?: boolean;
- fields?: Polytomic.UpdateBulkField[];
- filters?: Polytomic.BulkFilter[];
+ fields?: Polytomic.UpdateBulkField[] | null;
+ filters?: Polytomic.BulkFilter2[] | null;
partition_key?: string;
tracking_field?: string;
user_output_name?: string;
diff --git a/src/api/resources/bulkSync/resources/schemas/client/requests/index.ts b/src/api/resources/bulkSync/resources/schemas/client/requests/index.ts
index 13212f8..8bfe5d3 100644
--- a/src/api/resources/bulkSync/resources/schemas/client/requests/index.ts
+++ b/src/api/resources/bulkSync/resources/schemas/client/requests/index.ts
@@ -1,3 +1,4 @@
export { type SchemasListRequest } from "./SchemasListRequest";
export { type BulkSyncSchemasRequest } from "./BulkSyncSchemasRequest";
+export { type SchemasGetRequest } from "./SchemasGetRequest";
export { type UpdateBulkSchema } from "./UpdateBulkSchema";
diff --git a/src/api/resources/connections/client/Client.ts b/src/api/resources/connections/client/Client.ts
index eef15c3..c779910 100644
--- a/src/api/resources/connections/client/Client.ts
+++ b/src/api/resources/connections/client/Client.ts
@@ -5,6 +5,7 @@
import * as environments from "../../../../environments";
import * as core from "../../../../core";
import * as Polytomic from "../../../index";
+import { toJson } from "../../../../core/json";
import urlJoin from "url-join";
import * as errors from "../../../../errors/index";
@@ -15,7 +16,7 @@ export declare namespace Connections {
baseUrl?: core.Supplier;
token: core.Supplier;
/** Override the X-Polytomic-Version header */
- version?: core.Supplier;
+ version?: core.Supplier;
}
export interface RequestOptions {
@@ -26,7 +27,7 @@ export declare namespace Connections {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the X-Polytomic-Version header */
- version?: string | undefined;
+ version?: unknown;
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -58,13 +59,12 @@ export class Connections {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -110,6 +110,7 @@ export class Connections {
/**
* @param {string} id
+ * @param {Polytomic.ConnectionsGetConnectionTypeSchemaRequest} request
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Polytomic.UnauthorizedError}
@@ -117,10 +118,11 @@ export class Connections {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.connections.getConnectionTypeSchema("postgresql")
+ * await client.connections.getConnectionTypeSchema("id")
*/
public async getConnectionTypeSchema(
id: string,
+ request: Polytomic.ConnectionsGetConnectionTypeSchemaRequest = {},
requestOptions?: Connections.RequestOptions,
): Promise {
const _response = await core.fetcher({
@@ -134,13 +136,12 @@ export class Connections {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -207,13 +208,12 @@ export class Connections {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -270,14 +270,17 @@ export class Connections {
* @example
* await client.connections.create({
* configuration: {
- * "database": "example",
- * "hostname": "postgres.example.com",
- * "password": "********",
- * "port": 5432,
- * "username": "user"
+ * "configuration": {
+ * "key": "value"
+ * }
* },
- * name: "My Postgres Connection",
- * type: "postgresql"
+ * healthcheck_interval: undefined,
+ * name: "name",
+ * organization_id: undefined,
+ * policies: undefined,
+ * redirect_url: undefined,
+ * type: "type",
+ * validate: undefined
* })
*/
public async create(
@@ -295,13 +298,12 @@ export class Connections {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -373,8 +375,13 @@ export class Connections {
*
* @example
* await client.connections.connect({
- * name: "Salesforce Connection",
- * redirect_url: "redirect_url"
+ * connection: undefined,
+ * dark: undefined,
+ * name: "name",
+ * organization_id: undefined,
+ * redirect_url: "redirect_url",
+ * type: undefined,
+ * whitelist: undefined
* })
*/
public async connect(
@@ -392,13 +399,12 @@ export class Connections {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -461,13 +467,12 @@ export class Connections {
* @example
* await client.connections.testConnection({
* configuration: {
- * "database": "example",
- * "hostname": "postgres.example.com",
- * "password": "password",
- * "port": 5432,
- * "username": "user"
+ * "configuration": {
+ * "key": "value"
+ * }
* },
- * type: "postgresql"
+ * connection_id: undefined,
+ * type: "type"
* })
*/
public async testConnection(
@@ -485,13 +490,12 @@ export class Connections {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -542,6 +546,7 @@ export class Connections {
/**
* @param {string} id
+ * @param {Polytomic.ConnectionsGetRequest} request
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Polytomic.UnauthorizedError}
@@ -549,10 +554,11 @@ export class Connections {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.connections.get("248df4b7-aa70-47b8-a036-33ac447e668d")
+ * await client.connections.get("id")
*/
public async get(
id: string,
+ request: Polytomic.ConnectionsGetRequest = {},
requestOptions?: Connections.RequestOptions,
): Promise {
const _response = await core.fetcher({
@@ -566,13 +572,12 @@ export class Connections {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -631,15 +636,19 @@ export class Connections {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.connections.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
+ * await client.connections.update("id", {
* configuration: {
- * "database": "example",
- * "hostname": "postgres.example.com",
- * "password": "********",
- * "port": 5432,
- * "username": "user"
+ * "configuration": {
+ * "key": "value"
+ * }
* },
- * name: "My Postgres Connection"
+ * healthcheck_interval: undefined,
+ * name: "name",
+ * organization_id: undefined,
+ * policies: undefined,
+ * reconnect: undefined,
+ * type: undefined,
+ * validate: undefined
* })
*/
public async update(
@@ -658,13 +667,12 @@ export class Connections {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -729,9 +737,7 @@ export class Connections {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.connections.remove("248df4b7-aa70-47b8-a036-33ac447e668d", {
- * force: true
- * })
+ * await client.connections.remove("id")
*/
public async remove(
id: string,
@@ -755,13 +761,12 @@ export class Connections {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -814,6 +819,7 @@ export class Connections {
/**
* @param {string} id
+ * @param {Polytomic.ConnectionsGetParameterValuesRequest} request
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Polytomic.UnauthorizedError}
@@ -821,10 +827,11 @@ export class Connections {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.connections.getParameterValues("248df4b7-aa70-47b8-a036-33ac447e668d")
+ * await client.connections.getParameterValues("id")
*/
public async getParameterValues(
id: string,
+ request: Polytomic.ConnectionsGetParameterValuesRequest = {},
requestOptions?: Connections.RequestOptions,
): Promise {
const _response = await core.fetcher({
@@ -838,13 +845,12 @@ export class Connections {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/connections/client/requests/ConnectCardRequest.ts b/src/api/resources/connections/client/requests/ConnectCardRequest.ts
index 1bda93b..bd3ee87 100644
--- a/src/api/resources/connections/client/requests/ConnectCardRequest.ts
+++ b/src/api/resources/connections/client/requests/ConnectCardRequest.ts
@@ -5,8 +5,13 @@
/**
* @example
* {
- * name: "Salesforce Connection",
- * redirect_url: "redirect_url"
+ * connection: undefined,
+ * dark: undefined,
+ * name: "name",
+ * organization_id: undefined,
+ * redirect_url: "redirect_url",
+ * type: undefined,
+ * whitelist: undefined
* }
*/
export interface ConnectCardRequest {
@@ -16,11 +21,11 @@ export interface ConnectCardRequest {
dark?: boolean;
/** Name of the new connection. Must be unique per organization. */
name: string;
- organization_id?: string;
+ organization_id?: string | null;
/** URL to redirect to after connection is created. */
redirect_url: string;
/** Connection type to create. */
type?: string;
/** List of connection types which are allowed to be created. Ignored if type is set. */
- whitelist?: string[];
+ whitelist?: string[] | null;
}
diff --git a/src/api/resources/connections/client/requests/ConnectionsGetConnectionTypeSchemaRequest.ts b/src/api/resources/connections/client/requests/ConnectionsGetConnectionTypeSchemaRequest.ts
new file mode 100644
index 0000000..7eed312
--- /dev/null
+++ b/src/api/resources/connections/client/requests/ConnectionsGetConnectionTypeSchemaRequest.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface ConnectionsGetConnectionTypeSchemaRequest {}
diff --git a/src/api/resources/connections/client/requests/ConnectionsGetParameterValuesRequest.ts b/src/api/resources/connections/client/requests/ConnectionsGetParameterValuesRequest.ts
new file mode 100644
index 0000000..8d6b174
--- /dev/null
+++ b/src/api/resources/connections/client/requests/ConnectionsGetParameterValuesRequest.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface ConnectionsGetParameterValuesRequest {}
diff --git a/src/api/resources/connections/client/requests/ConnectionsGetRequest.ts b/src/api/resources/connections/client/requests/ConnectionsGetRequest.ts
new file mode 100644
index 0000000..3db392e
--- /dev/null
+++ b/src/api/resources/connections/client/requests/ConnectionsGetRequest.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface ConnectionsGetRequest {}
diff --git a/src/api/resources/connections/client/requests/ConnectionsRemoveRequest.ts b/src/api/resources/connections/client/requests/ConnectionsRemoveRequest.ts
index c20a0f7..2f4a2a3 100644
--- a/src/api/resources/connections/client/requests/ConnectionsRemoveRequest.ts
+++ b/src/api/resources/connections/client/requests/ConnectionsRemoveRequest.ts
@@ -4,9 +4,7 @@
/**
* @example
- * {
- * force: true
- * }
+ * {}
*/
export interface ConnectionsRemoveRequest {
force?: boolean;
diff --git a/src/api/resources/connections/client/requests/CreateConnectionRequestSchema.ts b/src/api/resources/connections/client/requests/CreateConnectionRequestSchema.ts
index ef90025..b9d0601 100644
--- a/src/api/resources/connections/client/requests/CreateConnectionRequestSchema.ts
+++ b/src/api/resources/connections/client/requests/CreateConnectionRequestSchema.ts
@@ -6,14 +6,17 @@
* @example
* {
* configuration: {
- * "database": "example",
- * "hostname": "postgres.example.com",
- * "password": "********",
- * "port": 5432,
- * "username": "user"
+ * "configuration": {
+ * "key": "value"
+ * }
* },
- * name: "My Postgres Connection",
- * type: "postgresql"
+ * healthcheck_interval: undefined,
+ * name: "name",
+ * organization_id: undefined,
+ * policies: undefined,
+ * redirect_url: undefined,
+ * type: "type",
+ * validate: undefined
* }
*/
export interface CreateConnectionRequestSchema {
@@ -21,8 +24,8 @@ export interface CreateConnectionRequestSchema {
/** Override interval for connection health checking. */
healthcheck_interval?: string;
name: string;
- organization_id?: string;
- policies?: string[];
+ organization_id?: string | null;
+ policies?: string[] | null;
/** URL to redirect to after completing OAuth flow. */
redirect_url?: string;
type: string;
diff --git a/src/api/resources/connections/client/requests/TestConnectionRequest.ts b/src/api/resources/connections/client/requests/TestConnectionRequest.ts
index 60b8363..5474e9f 100644
--- a/src/api/resources/connections/client/requests/TestConnectionRequest.ts
+++ b/src/api/resources/connections/client/requests/TestConnectionRequest.ts
@@ -6,13 +6,12 @@
* @example
* {
* configuration: {
- * "database": "example",
- * "hostname": "postgres.example.com",
- * "password": "password",
- * "port": 5432,
- * "username": "user"
+ * "configuration": {
+ * "key": "value"
+ * }
* },
- * type: "postgresql"
+ * connection_id: undefined,
+ * type: "type"
* }
*/
export interface TestConnectionRequest {
diff --git a/src/api/resources/connections/client/requests/UpdateConnectionRequestSchema.ts b/src/api/resources/connections/client/requests/UpdateConnectionRequestSchema.ts
index b081907..9d7a22b 100644
--- a/src/api/resources/connections/client/requests/UpdateConnectionRequestSchema.ts
+++ b/src/api/resources/connections/client/requests/UpdateConnectionRequestSchema.ts
@@ -6,13 +6,17 @@
* @example
* {
* configuration: {
- * "database": "example",
- * "hostname": "postgres.example.com",
- * "password": "********",
- * "port": 5432,
- * "username": "user"
+ * "configuration": {
+ * "key": "value"
+ * }
* },
- * name: "My Postgres Connection"
+ * healthcheck_interval: undefined,
+ * name: "name",
+ * organization_id: undefined,
+ * policies: undefined,
+ * reconnect: undefined,
+ * type: undefined,
+ * validate: undefined
* }
*/
export interface UpdateConnectionRequestSchema {
@@ -20,8 +24,8 @@ export interface UpdateConnectionRequestSchema {
/** Override interval for connection health checking. */
healthcheck_interval?: string;
name: string;
- organization_id?: string;
- policies?: string[];
+ organization_id?: string | null;
+ policies?: string[] | null;
reconnect?: boolean;
type?: string;
/** Validate connection configuration. */
diff --git a/src/api/resources/connections/client/requests/index.ts b/src/api/resources/connections/client/requests/index.ts
index 2c18703..9319e9f 100644
--- a/src/api/resources/connections/client/requests/index.ts
+++ b/src/api/resources/connections/client/requests/index.ts
@@ -1,5 +1,8 @@
+export { type ConnectionsGetConnectionTypeSchemaRequest } from "./ConnectionsGetConnectionTypeSchemaRequest";
export { type CreateConnectionRequestSchema } from "./CreateConnectionRequestSchema";
export { type ConnectCardRequest } from "./ConnectCardRequest";
export { type TestConnectionRequest } from "./TestConnectionRequest";
+export { type ConnectionsGetRequest } from "./ConnectionsGetRequest";
export { type UpdateConnectionRequestSchema } from "./UpdateConnectionRequestSchema";
export { type ConnectionsRemoveRequest } from "./ConnectionsRemoveRequest";
+export { type ConnectionsGetParameterValuesRequest } from "./ConnectionsGetParameterValuesRequest";
diff --git a/src/api/resources/events/client/Client.ts b/src/api/resources/events/client/Client.ts
index b05ed83..54f4e22 100644
--- a/src/api/resources/events/client/Client.ts
+++ b/src/api/resources/events/client/Client.ts
@@ -5,6 +5,7 @@
import * as environments from "../../../../environments";
import * as core from "../../../../core";
import * as Polytomic from "../../../index";
+import { toJson } from "../../../../core/json";
import urlJoin from "url-join";
import * as errors from "../../../../errors/index";
@@ -15,7 +16,7 @@ export declare namespace Events {
baseUrl?: core.Supplier;
token: core.Supplier;
/** Override the X-Polytomic-Version header */
- version?: core.Supplier;
+ version?: core.Supplier;
}
export interface RequestOptions {
@@ -26,7 +27,7 @@ export declare namespace Events {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the X-Polytomic-Version header */
- version?: string | undefined;
+ version?: unknown;
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -44,11 +45,7 @@ export class Events {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.events.list({
- * organization_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
- * starting_after: "2020-01-01T00:00:00Z",
- * ending_before: "2020-01-01T00:00:00Z"
- * })
+ * await client.events.list()
*/
public async list(
request: Polytomic.EventsListRequest = {},
@@ -62,7 +59,7 @@ export class Events {
limit,
} = request;
const _queryParams: Record = {};
- if (organizationId != null) {
+ if (organizationId !== undefined) {
_queryParams["organization_id"] = organizationId;
}
@@ -93,13 +90,12 @@ export class Events {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -166,13 +162,12 @@ export class Events {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/events/client/requests/EventsListRequest.ts b/src/api/resources/events/client/requests/EventsListRequest.ts
index 280a414..fec41d7 100644
--- a/src/api/resources/events/client/requests/EventsListRequest.ts
+++ b/src/api/resources/events/client/requests/EventsListRequest.ts
@@ -4,14 +4,10 @@
/**
* @example
- * {
- * organization_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
- * starting_after: "2020-01-01T00:00:00Z",
- * ending_before: "2020-01-01T00:00:00Z"
- * }
+ * {}
*/
export interface EventsListRequest {
- organization_id?: string;
+ organization_id?: string | null;
type?: string;
starting_after?: string;
ending_before?: string;
diff --git a/src/api/resources/identity/client/Client.ts b/src/api/resources/identity/client/Client.ts
index f93a695..2976540 100644
--- a/src/api/resources/identity/client/Client.ts
+++ b/src/api/resources/identity/client/Client.ts
@@ -5,6 +5,7 @@
import * as environments from "../../../../environments";
import * as core from "../../../../core";
import * as Polytomic from "../../../index";
+import { toJson } from "../../../../core/json";
import urlJoin from "url-join";
import * as errors from "../../../../errors/index";
@@ -15,7 +16,7 @@ export declare namespace Identity {
baseUrl?: core.Supplier;
token: core.Supplier;
/** Override the X-Polytomic-Version header */
- version?: core.Supplier;
+ version?: core.Supplier;
}
export interface RequestOptions {
@@ -26,7 +27,7 @@ export declare namespace Identity {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the X-Polytomic-Version header */
- version?: string | undefined;
+ version?: unknown;
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -58,13 +59,12 @@ export class Identity {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/index.ts b/src/api/resources/index.ts
index 885019c..739abd1 100644
--- a/src/api/resources/index.ts
+++ b/src/api/resources/index.ts
@@ -20,6 +20,7 @@ export * from "./schemas/client/requests";
export * from "./models/client/requests";
export * from "./modelSync/client/requests";
export * from "./events/client/requests";
+export * from "./jobs/client/requests";
export * from "./notifications/client/requests";
export * from "./organization/client/requests";
export * from "./users/client/requests";
diff --git a/src/api/resources/jobs/client/Client.ts b/src/api/resources/jobs/client/Client.ts
index 3df3dbb..456adbd 100644
--- a/src/api/resources/jobs/client/Client.ts
+++ b/src/api/resources/jobs/client/Client.ts
@@ -5,6 +5,7 @@
import * as environments from "../../../../environments";
import * as core from "../../../../core";
import * as Polytomic from "../../../index";
+import { toJson } from "../../../../core/json";
import urlJoin from "url-join";
import * as errors from "../../../../errors/index";
@@ -15,7 +16,7 @@ export declare namespace Jobs {
baseUrl?: core.Supplier;
token: core.Supplier;
/** Override the X-Polytomic-Version header */
- version?: core.Supplier;
+ version?: core.Supplier;
}
export interface RequestOptions {
@@ -26,7 +27,7 @@ export declare namespace Jobs {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the X-Polytomic-Version header */
- version?: string | undefined;
+ version?: unknown;
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -36,8 +37,9 @@ export class Jobs {
constructor(protected readonly _options: Jobs.Options) {}
/**
- * @param {string} id
* @param {string} type_
+ * @param {string} id
+ * @param {Polytomic.JobsGetRequest} request
* @param {Jobs.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Polytomic.BadRequestError}
@@ -46,11 +48,12 @@ export class Jobs {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.jobs.get("248df4b7-aa70-47b8-a036-33ac447e668d", "createmodel")
+ * await client.jobs.get("type", "id")
*/
public async get(
- id: string,
type_: string,
+ id: string,
+ request: Polytomic.JobsGetRequest = {},
requestOptions?: Jobs.RequestOptions,
): Promise {
const _response = await core.fetcher({
@@ -64,13 +67,12 @@ export class Jobs {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/jobs/client/index.ts b/src/api/resources/jobs/client/index.ts
index cb0ff5c..415726b 100644
--- a/src/api/resources/jobs/client/index.ts
+++ b/src/api/resources/jobs/client/index.ts
@@ -1 +1 @@
-export {};
+export * from "./requests";
diff --git a/src/api/resources/jobs/client/requests/JobsGetRequest.ts b/src/api/resources/jobs/client/requests/JobsGetRequest.ts
new file mode 100644
index 0000000..d9252c2
--- /dev/null
+++ b/src/api/resources/jobs/client/requests/JobsGetRequest.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface JobsGetRequest {}
diff --git a/src/api/resources/jobs/client/requests/index.ts b/src/api/resources/jobs/client/requests/index.ts
new file mode 100644
index 0000000..c541547
--- /dev/null
+++ b/src/api/resources/jobs/client/requests/index.ts
@@ -0,0 +1 @@
+export { type JobsGetRequest } from "./JobsGetRequest";
diff --git a/src/api/resources/modelSync/client/Client.ts b/src/api/resources/modelSync/client/Client.ts
index cc97f9d..8625a02 100644
--- a/src/api/resources/modelSync/client/Client.ts
+++ b/src/api/resources/modelSync/client/Client.ts
@@ -18,7 +18,7 @@ export declare namespace ModelSync {
baseUrl?: core.Supplier;
token: core.Supplier;
/** Override the X-Polytomic-Version header */
- version?: core.Supplier;
+ version?: core.Supplier;
}
export interface RequestOptions {
@@ -29,7 +29,7 @@ export declare namespace ModelSync {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the X-Polytomic-Version header */
- version?: string | undefined;
+ version?: unknown;
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -61,7 +61,7 @@ export class ModelSync {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.modelSync.getSource("248df4b7-aa70-47b8-a036-33ac447e668d")
+ * await client.modelSync.getSource("id")
*/
public async getSource(
id: string,
@@ -85,13 +85,12 @@ export class ModelSync {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -156,7 +155,7 @@ export class ModelSync {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.modelSync.getSourceFields("248df4b7-aa70-47b8-a036-33ac447e668d")
+ * await client.modelSync.getSourceFields("id")
*/
public async getSourceFields(
id: string,
@@ -180,13 +179,12 @@ export class ModelSync {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -249,10 +247,7 @@ export class ModelSync {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.modelSync.list({
- * active: true,
- * target_connection_id: "0b155265-c537-44c9-9359-a3ceb468a4da"
- * })
+ * await client.modelSync.list()
*/
public async list(
request: Polytomic.ModelSyncListRequest = {},
@@ -260,8 +255,8 @@ export class ModelSync {
): Promise {
const { active, mode, target_connection_id: targetConnectionId } = request;
const _queryParams: Record = {};
- if (active != null) {
- _queryParams["active"] = active.toString();
+ if (active !== undefined) {
+ _queryParams["active"] = active?.toString() ?? null;
}
if (mode != null) {
@@ -283,13 +278,12 @@ export class ModelSync {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -407,14 +401,55 @@ export class ModelSync {
*
* @example
* await client.modelSync.create({
+ * active: undefined,
+ * encryption_passphrase: undefined,
* fields: [{
- * target: "name"
+ * encryption_enabled: undefined,
+ * new: undefined,
+ * override_value: undefined,
+ * source: undefined,
+ * sync_mode: undefined,
+ * target: "target"
+ * }, {
+ * encryption_enabled: undefined,
+ * new: undefined,
+ * override_value: undefined,
+ * source: undefined,
+ * sync_mode: undefined,
+ * target: "target"
* }],
+ * filter_logic: undefined,
+ * filters: undefined,
+ * identity: undefined,
* mode: "create",
- * name: "Users Sync",
- * schedule: {},
+ * name: "name",
+ * only_enrich_updates: undefined,
+ * organization_id: undefined,
+ * override_fields: undefined,
+ * overrides: undefined,
+ * policies: undefined,
+ * schedule: {
+ * connection_id: undefined,
+ * day_of_month: undefined,
+ * day_of_week: undefined,
+ * frequency: undefined,
+ * hour: undefined,
+ * job_id: undefined,
+ * minute: undefined,
+ * month: undefined,
+ * run_after: undefined,
+ * run_after_success_only: undefined
+ * },
+ * skip_initial_backfill: undefined,
+ * sync_all_records: undefined,
* target: {
- * connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
+ * configuration: undefined,
+ * connection_id: "connection_id",
+ * create: undefined,
+ * filter_logic: undefined,
+ * new_name: undefined,
+ * object: undefined,
+ * search_values: undefined
* }
* })
*/
@@ -433,13 +468,12 @@ export class ModelSync {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -513,13 +547,12 @@ export class ModelSync {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -565,6 +598,7 @@ export class ModelSync {
/**
* @param {string} id
+ * @param {Polytomic.ModelSyncGetRequest} request
* @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Polytomic.UnauthorizedError}
@@ -572,10 +606,11 @@ export class ModelSync {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.modelSync.get("248df4b7-aa70-47b8-a036-33ac447e668d")
+ * await client.modelSync.get("id")
*/
public async get(
id: string,
+ request: Polytomic.ModelSyncGetRequest = {},
requestOptions?: ModelSync.RequestOptions,
): Promise {
const _response = await core.fetcher({
@@ -589,13 +624,12 @@ export class ModelSync {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -654,15 +688,56 @@ export class ModelSync {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.modelSync.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
+ * await client.modelSync.update("id", {
+ * active: undefined,
+ * encryption_passphrase: undefined,
* fields: [{
- * target: "name"
+ * encryption_enabled: undefined,
+ * new: undefined,
+ * override_value: undefined,
+ * source: undefined,
+ * sync_mode: undefined,
+ * target: "target"
+ * }, {
+ * encryption_enabled: undefined,
+ * new: undefined,
+ * override_value: undefined,
+ * source: undefined,
+ * sync_mode: undefined,
+ * target: "target"
* }],
+ * filter_logic: undefined,
+ * filters: undefined,
+ * identity: undefined,
* mode: "create",
- * name: "Users Sync",
- * schedule: {},
+ * name: "name",
+ * only_enrich_updates: undefined,
+ * organization_id: undefined,
+ * override_fields: undefined,
+ * overrides: undefined,
+ * policies: undefined,
+ * schedule: {
+ * connection_id: undefined,
+ * day_of_month: undefined,
+ * day_of_week: undefined,
+ * frequency: undefined,
+ * hour: undefined,
+ * job_id: undefined,
+ * minute: undefined,
+ * month: undefined,
+ * run_after: undefined,
+ * run_after_success_only: undefined
+ * },
+ * skip_initial_backfill: undefined,
+ * sync_all_records: undefined,
* target: {
- * connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
+ * configuration: undefined,
+ * connection_id: "connection_id",
+ * create: undefined,
+ * filter_logic: undefined,
+ * new_name: undefined,
+ * object: undefined,
+ * search_values: undefined
* }
* })
*/
@@ -682,13 +757,12 @@ export class ModelSync {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -743,6 +817,7 @@ export class ModelSync {
/**
* @param {string} id
+ * @param {Polytomic.ModelSyncRemoveRequest} request
* @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Polytomic.UnauthorizedError}
@@ -752,9 +827,13 @@ export class ModelSync {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.modelSync.remove("248df4b7-aa70-47b8-a036-33ac447e668d")
+ * await client.modelSync.remove("id")
*/
- public async remove(id: string, requestOptions?: ModelSync.RequestOptions): Promise {
+ public async remove(
+ id: string,
+ request: Polytomic.ModelSyncRemoveRequest = {},
+ requestOptions?: ModelSync.RequestOptions,
+ ): Promise {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.baseUrl)) ??
@@ -766,13 +845,12 @@ export class ModelSync {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -824,7 +902,7 @@ export class ModelSync {
/**
* @param {string} id
- * @param {Polytomic.ActivateSyncInput} request
+ * @param {Polytomic.ModelSyncActivateRequest} request
* @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Polytomic.UnauthorizedError}
@@ -833,13 +911,15 @@ export class ModelSync {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.modelSync.activate("248df4b7-aa70-47b8-a036-33ac447e668d", {
- * active: true
+ * await client.modelSync.activate("id", {
+ * body: {
+ * active: true
+ * }
* })
*/
public async activate(
id: string,
- request: Polytomic.ActivateSyncInput,
+ request: Polytomic.ModelSyncActivateRequest,
requestOptions?: ModelSync.RequestOptions,
): Promise {
const _response = await core.fetcher({
@@ -853,13 +933,12 @@ export class ModelSync {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -910,6 +989,7 @@ export class ModelSync {
/**
* @param {string} id - The active execution of this sync ID will be cancelled.
+ * @param {Polytomic.ModelSyncCancelRequest} request
* @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Polytomic.UnauthorizedError}
@@ -918,10 +998,11 @@ export class ModelSync {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.modelSync.cancel("248df4b7-aa70-47b8-a036-33ac447e668d")
+ * await client.modelSync.cancel("id")
*/
public async cancel(
id: string,
+ request: Polytomic.ModelSyncCancelRequest = {},
requestOptions?: ModelSync.RequestOptions,
): Promise {
const _response = await core.fetcher({
@@ -935,13 +1016,12 @@ export class ModelSync {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -1006,7 +1086,11 @@ export class ModelSync {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.modelSync.start("248df4b7-aa70-47b8-a036-33ac447e668d")
+ * await client.modelSync.start("id", {
+ * identities: undefined,
+ * resync: undefined,
+ * test: undefined
+ * })
*/
public async start(
id: string,
@@ -1024,13 +1108,12 @@ export class ModelSync {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -1087,6 +1170,7 @@ export class ModelSync {
/**
* @param {string} id
+ * @param {Polytomic.ModelSyncGetStatusRequest} request
* @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Polytomic.UnauthorizedError}
@@ -1094,10 +1178,11 @@ export class ModelSync {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.modelSync.getStatus("248df4b7-aa70-47b8-a036-33ac447e668d")
+ * await client.modelSync.getStatus("id")
*/
public async getStatus(
id: string,
+ request: Polytomic.ModelSyncGetStatusRequest = {},
requestOptions?: ModelSync.RequestOptions,
): Promise {
const _response = await core.fetcher({
@@ -1111,13 +1196,12 @@ export class ModelSync {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/modelSync/client/requests/CreateModelSyncRequest.ts b/src/api/resources/modelSync/client/requests/CreateModelSyncRequest.ts
index 28311f3..8010060 100644
--- a/src/api/resources/modelSync/client/requests/CreateModelSyncRequest.ts
+++ b/src/api/resources/modelSync/client/requests/CreateModelSyncRequest.ts
@@ -7,14 +7,55 @@ import * as Polytomic from "../../../../index";
/**
* @example
* {
+ * active: undefined,
+ * encryption_passphrase: undefined,
* fields: [{
- * target: "name"
+ * encryption_enabled: undefined,
+ * new: undefined,
+ * override_value: undefined,
+ * source: undefined,
+ * sync_mode: undefined,
+ * target: "target"
+ * }, {
+ * encryption_enabled: undefined,
+ * new: undefined,
+ * override_value: undefined,
+ * source: undefined,
+ * sync_mode: undefined,
+ * target: "target"
* }],
+ * filter_logic: undefined,
+ * filters: undefined,
+ * identity: undefined,
* mode: "create",
- * name: "Users Sync",
- * schedule: {},
+ * name: "name",
+ * only_enrich_updates: undefined,
+ * organization_id: undefined,
+ * override_fields: undefined,
+ * overrides: undefined,
+ * policies: undefined,
+ * schedule: {
+ * connection_id: undefined,
+ * day_of_month: undefined,
+ * day_of_week: undefined,
+ * frequency: undefined,
+ * hour: undefined,
+ * job_id: undefined,
+ * minute: undefined,
+ * month: undefined,
+ * run_after: undefined,
+ * run_after_success_only: undefined
+ * },
+ * skip_initial_backfill: undefined,
+ * sync_all_records: undefined,
* target: {
- * connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
+ * configuration: undefined,
+ * connection_id: "connection_id",
+ * create: undefined,
+ * filter_logic: undefined,
+ * new_name: undefined,
+ * object: undefined,
+ * search_values: undefined
* }
* }
*/
@@ -28,19 +69,19 @@ export interface CreateModelSyncRequest {
/** Logical expression to combine filters. */
filter_logic?: string;
/** Filters to apply to the source data. */
- filters?: Polytomic.Filter[];
+ filters?: Polytomic.Filter[] | null;
identity?: Polytomic.Identity;
mode: Polytomic.ModelSyncMode;
name: string;
/** Whether to use enrichment models as a source of possible changes to sync. If true, only changes to the base models will cause a record to sync. */
only_enrich_updates?: boolean;
/** Organization ID for the sync; read-only with a partner key. */
- organization_id?: string;
+ organization_id?: string | null;
/** Values to set in the target unconditionally. */
- override_fields?: Polytomic.ModelSyncField[];
+ override_fields?: Polytomic.ModelSyncField[] | null;
/** Conditional value replacement for fields. */
- overrides?: Polytomic.Override[];
- policies?: string[];
+ overrides?: Polytomic.Override[] | null;
+ policies?: string[] | null;
schedule: Polytomic.Schedule;
/** Whether to skip the initial backfill of records; if true only records seen after the sync is enabled will be synced. */
skip_initial_backfill?: boolean;
diff --git a/src/api/resources/modelSync/client/requests/ModelSyncActivateRequest.ts b/src/api/resources/modelSync/client/requests/ModelSyncActivateRequest.ts
new file mode 100644
index 0000000..bab38ef
--- /dev/null
+++ b/src/api/resources/modelSync/client/requests/ModelSyncActivateRequest.ts
@@ -0,0 +1,17 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as Polytomic from "../../../../index";
+
+/**
+ * @example
+ * {
+ * body: {
+ * active: true
+ * }
+ * }
+ */
+export interface ModelSyncActivateRequest {
+ body: Polytomic.ActivateSyncInput;
+}
diff --git a/src/api/resources/modelSync/client/requests/ModelSyncCancelRequest.ts b/src/api/resources/modelSync/client/requests/ModelSyncCancelRequest.ts
new file mode 100644
index 0000000..beaf106
--- /dev/null
+++ b/src/api/resources/modelSync/client/requests/ModelSyncCancelRequest.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface ModelSyncCancelRequest {}
diff --git a/src/api/resources/modelSync/client/requests/ModelSyncGetRequest.ts b/src/api/resources/modelSync/client/requests/ModelSyncGetRequest.ts
new file mode 100644
index 0000000..8fea221
--- /dev/null
+++ b/src/api/resources/modelSync/client/requests/ModelSyncGetRequest.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface ModelSyncGetRequest {}
diff --git a/src/api/resources/modelSync/client/requests/ModelSyncGetSourceFieldsRequest.ts b/src/api/resources/modelSync/client/requests/ModelSyncGetSourceFieldsRequest.ts
index da43533..3737a9d 100644
--- a/src/api/resources/modelSync/client/requests/ModelSyncGetSourceFieldsRequest.ts
+++ b/src/api/resources/modelSync/client/requests/ModelSyncGetSourceFieldsRequest.ts
@@ -7,5 +7,5 @@
* {}
*/
export interface ModelSyncGetSourceFieldsRequest {
- params?: Record;
+ params?: Record;
}
diff --git a/src/api/resources/modelSync/client/requests/ModelSyncGetSourceRequest.ts b/src/api/resources/modelSync/client/requests/ModelSyncGetSourceRequest.ts
index 591b388..5140910 100644
--- a/src/api/resources/modelSync/client/requests/ModelSyncGetSourceRequest.ts
+++ b/src/api/resources/modelSync/client/requests/ModelSyncGetSourceRequest.ts
@@ -7,5 +7,5 @@
* {}
*/
export interface ModelSyncGetSourceRequest {
- params?: Record;
+ params?: Record;
}
diff --git a/src/api/resources/modelSync/client/requests/ModelSyncGetStatusRequest.ts b/src/api/resources/modelSync/client/requests/ModelSyncGetStatusRequest.ts
new file mode 100644
index 0000000..f6b0ca6
--- /dev/null
+++ b/src/api/resources/modelSync/client/requests/ModelSyncGetStatusRequest.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface ModelSyncGetStatusRequest {}
diff --git a/src/api/resources/modelSync/client/requests/ModelSyncListRequest.ts b/src/api/resources/modelSync/client/requests/ModelSyncListRequest.ts
index 4a51358..9ba0f44 100644
--- a/src/api/resources/modelSync/client/requests/ModelSyncListRequest.ts
+++ b/src/api/resources/modelSync/client/requests/ModelSyncListRequest.ts
@@ -6,13 +6,10 @@ import * as Polytomic from "../../../../index";
/**
* @example
- * {
- * active: true,
- * target_connection_id: "0b155265-c537-44c9-9359-a3ceb468a4da"
- * }
+ * {}
*/
export interface ModelSyncListRequest {
- active?: boolean;
+ active?: boolean | null;
mode?: Polytomic.ModelSyncMode;
target_connection_id?: string;
}
diff --git a/src/api/resources/modelSync/client/requests/ModelSyncRemoveRequest.ts b/src/api/resources/modelSync/client/requests/ModelSyncRemoveRequest.ts
new file mode 100644
index 0000000..72385e5
--- /dev/null
+++ b/src/api/resources/modelSync/client/requests/ModelSyncRemoveRequest.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface ModelSyncRemoveRequest {}
diff --git a/src/api/resources/modelSync/client/requests/StartModelSyncRequest.ts b/src/api/resources/modelSync/client/requests/StartModelSyncRequest.ts
index 44bcd85..d9da9c6 100644
--- a/src/api/resources/modelSync/client/requests/StartModelSyncRequest.ts
+++ b/src/api/resources/modelSync/client/requests/StartModelSyncRequest.ts
@@ -4,10 +4,14 @@
/**
* @example
- * {}
+ * {
+ * identities: undefined,
+ * resync: undefined,
+ * test: undefined
+ * }
*/
export interface StartModelSyncRequest {
- identities?: string[];
+ identities?: string[] | null;
resync?: boolean;
test?: boolean;
}
diff --git a/src/api/resources/modelSync/client/requests/UpdateModelSyncRequest.ts b/src/api/resources/modelSync/client/requests/UpdateModelSyncRequest.ts
index 417bba5..daa04fd 100644
--- a/src/api/resources/modelSync/client/requests/UpdateModelSyncRequest.ts
+++ b/src/api/resources/modelSync/client/requests/UpdateModelSyncRequest.ts
@@ -7,14 +7,55 @@ import * as Polytomic from "../../../../index";
/**
* @example
* {
+ * active: undefined,
+ * encryption_passphrase: undefined,
* fields: [{
- * target: "name"
+ * encryption_enabled: undefined,
+ * new: undefined,
+ * override_value: undefined,
+ * source: undefined,
+ * sync_mode: undefined,
+ * target: "target"
+ * }, {
+ * encryption_enabled: undefined,
+ * new: undefined,
+ * override_value: undefined,
+ * source: undefined,
+ * sync_mode: undefined,
+ * target: "target"
* }],
+ * filter_logic: undefined,
+ * filters: undefined,
+ * identity: undefined,
* mode: "create",
- * name: "Users Sync",
- * schedule: {},
+ * name: "name",
+ * only_enrich_updates: undefined,
+ * organization_id: undefined,
+ * override_fields: undefined,
+ * overrides: undefined,
+ * policies: undefined,
+ * schedule: {
+ * connection_id: undefined,
+ * day_of_month: undefined,
+ * day_of_week: undefined,
+ * frequency: undefined,
+ * hour: undefined,
+ * job_id: undefined,
+ * minute: undefined,
+ * month: undefined,
+ * run_after: undefined,
+ * run_after_success_only: undefined
+ * },
+ * skip_initial_backfill: undefined,
+ * sync_all_records: undefined,
* target: {
- * connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
+ * configuration: undefined,
+ * connection_id: "connection_id",
+ * create: undefined,
+ * filter_logic: undefined,
+ * new_name: undefined,
+ * object: undefined,
+ * search_values: undefined
* }
* }
*/
@@ -28,19 +69,19 @@ export interface UpdateModelSyncRequest {
/** Logical expression to combine filters. */
filter_logic?: string;
/** Filters to apply to the source data. */
- filters?: Polytomic.Filter[];
+ filters?: Polytomic.Filter[] | null;
identity?: Polytomic.Identity;
mode: Polytomic.ModelSyncMode;
name: string;
/** Whether to use enrichment models as a source of possible changes to sync. If true, only changes to the base models will cause a record to sync. */
only_enrich_updates?: boolean;
/** Organization ID for the sync; read-only with a partner key. */
- organization_id?: string;
+ organization_id?: string | null;
/** Values to set in the target unconditionally. */
- override_fields?: Polytomic.ModelSyncField[];
+ override_fields?: Polytomic.ModelSyncField[] | null;
/** Conditional value replacement for fields. */
- overrides?: Polytomic.Override[];
- policies?: string[];
+ overrides?: Polytomic.Override[] | null;
+ policies?: string[] | null;
schedule: Polytomic.Schedule;
/** Whether to skip the initial backfill of records; if true only records seen after the sync is enabled will be synced. */
skip_initial_backfill?: boolean;
diff --git a/src/api/resources/modelSync/client/requests/index.ts b/src/api/resources/modelSync/client/requests/index.ts
index eb1a6b2..a252bc3 100644
--- a/src/api/resources/modelSync/client/requests/index.ts
+++ b/src/api/resources/modelSync/client/requests/index.ts
@@ -2,5 +2,10 @@ export { type ModelSyncGetSourceRequest } from "./ModelSyncGetSourceRequest";
export { type ModelSyncGetSourceFieldsRequest } from "./ModelSyncGetSourceFieldsRequest";
export { type ModelSyncListRequest } from "./ModelSyncListRequest";
export { type CreateModelSyncRequest } from "./CreateModelSyncRequest";
+export { type ModelSyncGetRequest } from "./ModelSyncGetRequest";
export { type UpdateModelSyncRequest } from "./UpdateModelSyncRequest";
+export { type ModelSyncRemoveRequest } from "./ModelSyncRemoveRequest";
+export { type ModelSyncActivateRequest } from "./ModelSyncActivateRequest";
+export { type ModelSyncCancelRequest } from "./ModelSyncCancelRequest";
export { type StartModelSyncRequest } from "./StartModelSyncRequest";
+export { type ModelSyncGetStatusRequest } from "./ModelSyncGetStatusRequest";
diff --git a/src/api/resources/modelSync/resources/executions/client/Client.ts b/src/api/resources/modelSync/resources/executions/client/Client.ts
index 0d61c27..2e23c64 100644
--- a/src/api/resources/modelSync/resources/executions/client/Client.ts
+++ b/src/api/resources/modelSync/resources/executions/client/Client.ts
@@ -5,6 +5,7 @@
import * as environments from "../../../../../../environments";
import * as core from "../../../../../../core";
import * as Polytomic from "../../../../../index";
+import { toJson } from "../../../../../../core/json";
import urlJoin from "url-join";
import * as errors from "../../../../../../errors/index";
@@ -15,7 +16,7 @@ export declare namespace Executions {
baseUrl?: core.Supplier;
token: core.Supplier;
/** Override the X-Polytomic-Version header */
- version?: core.Supplier;
+ version?: core.Supplier;
}
export interface RequestOptions {
@@ -26,7 +27,7 @@ export declare namespace Executions {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the X-Polytomic-Version header */
- version?: string | undefined;
+ version?: unknown;
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -44,11 +45,7 @@ export class Executions {
* @throws {@link Polytomic.NotFoundError}
*
* @example
- * await client.modelSync.executions.list("248df4b7-aa70-47b8-a036-33ac447e668d", {
- * page_token: "AmkYh8v0jR5B3kls2Qcc9y8MjrPmvR4CvaK7H0F4rEwqvg76K==",
- * only_completed: true,
- * ascending: true
- * })
+ * await client.modelSync.executions.list("sync_id")
*/
public async list(
syncId: string,
@@ -80,13 +77,12 @@ export class Executions {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -136,6 +132,7 @@ export class Executions {
/**
* @param {string} syncId
* @param {string} id
+ * @param {Polytomic.modelSync.ExecutionsGetRequest} request
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Polytomic.UnauthorizedError}
@@ -143,11 +140,12 @@ export class Executions {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.modelSync.executions.get("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
+ * await client.modelSync.executions.get("sync_id", "id")
*/
public async get(
syncId: string,
id: string,
+ request: Polytomic.modelSync.ExecutionsGetRequest = {},
requestOptions?: Executions.RequestOptions,
): Promise {
const _response = await core.fetcher({
@@ -161,13 +159,12 @@ export class Executions {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -228,7 +225,7 @@ export class Executions {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.modelSync.executions.update("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
+ * await client.modelSync.executions.update("sync_id", "id", {
* status: "created"
* })
*/
@@ -249,13 +246,12 @@ export class Executions {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -312,6 +308,7 @@ export class Executions {
* @param {string} syncId
* @param {string} id
* @param {Polytomic.V2ExecutionLogType} type_
+ * @param {Polytomic.modelSync.ExecutionsGetLogUrlsRequest} request
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Polytomic.BadRequestError}
@@ -320,12 +317,13 @@ export class Executions {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.modelSync.executions.getLogUrls("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", "records")
+ * await client.modelSync.executions.getLogUrls("sync_id", "id", "records")
*/
public async getLogUrls(
syncId: string,
id: string,
type_: Polytomic.V2ExecutionLogType,
+ request: Polytomic.modelSync.ExecutionsGetLogUrlsRequest = {},
requestOptions?: Executions.RequestOptions,
): Promise {
const _response = await core.fetcher({
@@ -339,13 +337,12 @@ export class Executions {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -400,6 +397,7 @@ export class Executions {
* @param {string} id
* @param {Polytomic.V2ExecutionLogType} type_
* @param {string} filename
+ * @param {Polytomic.modelSync.ExecutionsGetLogsRequest} request
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Polytomic.BadRequestError}
@@ -408,13 +406,14 @@ export class Executions {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.modelSync.executions.getLogs("248df4b7-aa70-47b8-a036-33ac447e668d", "0ecd09c1-b901-4d27-9053-f0367c427254", "records", "path/to/file.json")
+ * await client.modelSync.executions.getLogs("sync_id", "id", "records", "filename")
*/
public async getLogs(
syncId: string,
id: string,
type_: Polytomic.V2ExecutionLogType,
filename: string,
+ request: Polytomic.modelSync.ExecutionsGetLogsRequest = {},
requestOptions?: Executions.RequestOptions,
): Promise {
const _response = await core.fetcher({
@@ -428,13 +427,12 @@ export class Executions {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/modelSync/resources/executions/client/requests/ExecutionsGetLogUrlsRequest.ts b/src/api/resources/modelSync/resources/executions/client/requests/ExecutionsGetLogUrlsRequest.ts
new file mode 100644
index 0000000..e01933c
--- /dev/null
+++ b/src/api/resources/modelSync/resources/executions/client/requests/ExecutionsGetLogUrlsRequest.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface ExecutionsGetLogUrlsRequest {}
diff --git a/src/api/resources/modelSync/resources/executions/client/requests/ExecutionsGetLogsRequest.ts b/src/api/resources/modelSync/resources/executions/client/requests/ExecutionsGetLogsRequest.ts
new file mode 100644
index 0000000..c86c387
--- /dev/null
+++ b/src/api/resources/modelSync/resources/executions/client/requests/ExecutionsGetLogsRequest.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface ExecutionsGetLogsRequest {}
diff --git a/src/api/resources/modelSync/resources/executions/client/requests/ExecutionsGetRequest.ts b/src/api/resources/modelSync/resources/executions/client/requests/ExecutionsGetRequest.ts
new file mode 100644
index 0000000..910b395
--- /dev/null
+++ b/src/api/resources/modelSync/resources/executions/client/requests/ExecutionsGetRequest.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface ExecutionsGetRequest {}
diff --git a/src/api/resources/modelSync/resources/executions/client/requests/ExecutionsListRequest.ts b/src/api/resources/modelSync/resources/executions/client/requests/ExecutionsListRequest.ts
index 35aba74..01531ea 100644
--- a/src/api/resources/modelSync/resources/executions/client/requests/ExecutionsListRequest.ts
+++ b/src/api/resources/modelSync/resources/executions/client/requests/ExecutionsListRequest.ts
@@ -4,11 +4,7 @@
/**
* @example
- * {
- * page_token: "AmkYh8v0jR5B3kls2Qcc9y8MjrPmvR4CvaK7H0F4rEwqvg76K==",
- * only_completed: true,
- * ascending: true
- * }
+ * {}
*/
export interface ExecutionsListRequest {
page_token?: string;
diff --git a/src/api/resources/modelSync/resources/executions/client/requests/index.ts b/src/api/resources/modelSync/resources/executions/client/requests/index.ts
index a6f2d67..bc01882 100644
--- a/src/api/resources/modelSync/resources/executions/client/requests/index.ts
+++ b/src/api/resources/modelSync/resources/executions/client/requests/index.ts
@@ -1,2 +1,5 @@
export { type ExecutionsListRequest } from "./ExecutionsListRequest";
+export { type ExecutionsGetRequest } from "./ExecutionsGetRequest";
export { type UpdateExecutionRequest } from "./UpdateExecutionRequest";
+export { type ExecutionsGetLogUrlsRequest } from "./ExecutionsGetLogUrlsRequest";
+export { type ExecutionsGetLogsRequest } from "./ExecutionsGetLogsRequest";
diff --git a/src/api/resources/modelSync/resources/targets/client/Client.ts b/src/api/resources/modelSync/resources/targets/client/Client.ts
index c947cb3..bc6b924 100644
--- a/src/api/resources/modelSync/resources/targets/client/Client.ts
+++ b/src/api/resources/modelSync/resources/targets/client/Client.ts
@@ -5,6 +5,7 @@
import * as environments from "../../../../../../environments";
import * as core from "../../../../../../core";
import * as Polytomic from "../../../../../index";
+import { toJson } from "../../../../../../core/json";
import urlJoin from "url-join";
import * as errors from "../../../../../../errors/index";
@@ -15,7 +16,7 @@ export declare namespace Targets {
baseUrl?: core.Supplier;
token: core.Supplier;
/** Override the X-Polytomic-Version header */
- version?: core.Supplier;
+ version?: core.Supplier;
}
export interface RequestOptions {
@@ -26,7 +27,7 @@ export declare namespace Targets {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the X-Polytomic-Version header */
- version?: string | undefined;
+ version?: unknown;
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -47,7 +48,7 @@ export class Targets {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.modelSync.targets.getTarget("248df4b7-aa70-47b8-a036-33ac447e668d")
+ * await client.modelSync.targets.getTarget("id")
*/
public async getTarget(
id: string,
@@ -75,13 +76,12 @@ export class Targets {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -145,9 +145,8 @@ export class Targets {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.modelSync.targets.getTargetFields("248df4b7-aa70-47b8-a036-33ac447e668d", {
- * target: "database.table",
- * refresh: false
+ * await client.modelSync.targets.getTargetFields("id", {
+ * target: "target"
* })
*/
public async getTargetFields(
@@ -173,13 +172,12 @@ export class Targets {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -250,6 +248,7 @@ export class Targets {
* what operations the mode supports.
*
* @param {string} id
+ * @param {Polytomic.modelSync.TargetsListRequest} request
* @param {Targets.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Polytomic.BadRequestError}
@@ -259,10 +258,11 @@ export class Targets {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.modelSync.targets.list("248df4b7-aa70-47b8-a036-33ac447e668d")
+ * await client.modelSync.targets.list("id")
*/
public async list(
id: string,
+ request: Polytomic.modelSync.TargetsListRequest = {},
requestOptions?: Targets.RequestOptions,
): Promise {
const _response = await core.fetcher({
@@ -276,13 +276,12 @@ export class Targets {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -368,6 +367,7 @@ export class Targets {
*
* @param {string} id
* @param {string} property
+ * @param {Polytomic.modelSync.TargetsGetCreatePropertyRequest} request
* @param {Targets.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Polytomic.BadRequestError}
@@ -377,11 +377,12 @@ export class Targets {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.modelSync.targets.getCreateProperty("248df4b7-aa70-47b8-a036-33ac447e668d", "property")
+ * await client.modelSync.targets.getCreateProperty("id", "property")
*/
public async getCreateProperty(
id: string,
property: string,
+ request: Polytomic.modelSync.TargetsGetCreatePropertyRequest = {},
requestOptions?: Targets.RequestOptions,
): Promise {
const _response = await core.fetcher({
@@ -395,13 +396,12 @@ export class Targets {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/modelSync/resources/targets/client/requests/TargetsGetCreatePropertyRequest.ts b/src/api/resources/modelSync/resources/targets/client/requests/TargetsGetCreatePropertyRequest.ts
new file mode 100644
index 0000000..f3b6953
--- /dev/null
+++ b/src/api/resources/modelSync/resources/targets/client/requests/TargetsGetCreatePropertyRequest.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface TargetsGetCreatePropertyRequest {}
diff --git a/src/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetFieldsRequest.ts b/src/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetFieldsRequest.ts
index e5fb9d1..d00778a 100644
--- a/src/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetFieldsRequest.ts
+++ b/src/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetFieldsRequest.ts
@@ -5,8 +5,7 @@
/**
* @example
* {
- * target: "database.table",
- * refresh: false
+ * target: "target"
* }
*/
export interface TargetsGetTargetFieldsRequest {
diff --git a/src/api/resources/modelSync/resources/targets/client/requests/TargetsListRequest.ts b/src/api/resources/modelSync/resources/targets/client/requests/TargetsListRequest.ts
new file mode 100644
index 0000000..e861c2c
--- /dev/null
+++ b/src/api/resources/modelSync/resources/targets/client/requests/TargetsListRequest.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface TargetsListRequest {}
diff --git a/src/api/resources/modelSync/resources/targets/client/requests/index.ts b/src/api/resources/modelSync/resources/targets/client/requests/index.ts
index 738b9d0..22c217d 100644
--- a/src/api/resources/modelSync/resources/targets/client/requests/index.ts
+++ b/src/api/resources/modelSync/resources/targets/client/requests/index.ts
@@ -1,2 +1,4 @@
export { type TargetsGetTargetRequest } from "./TargetsGetTargetRequest";
export { type TargetsGetTargetFieldsRequest } from "./TargetsGetTargetFieldsRequest";
+export { type TargetsListRequest } from "./TargetsListRequest";
+export { type TargetsGetCreatePropertyRequest } from "./TargetsGetCreatePropertyRequest";
diff --git a/src/api/resources/models/client/Client.ts b/src/api/resources/models/client/Client.ts
index 0ea0887..7f0efe7 100644
--- a/src/api/resources/models/client/Client.ts
+++ b/src/api/resources/models/client/Client.ts
@@ -16,7 +16,7 @@ export declare namespace Models {
baseUrl?: core.Supplier;
token: core.Supplier;
/** Override the X-Polytomic-Version header */
- version?: core.Supplier;
+ version?: core.Supplier;
}
export interface RequestOptions {
@@ -27,7 +27,7 @@ export declare namespace Models {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the X-Polytomic-Version header */
- version?: string | undefined;
+ version?: unknown;
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -48,7 +48,7 @@ export class Models {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.models.getEnrichmentSource("248df4b7-aa70-47b8-a036-33ac447e668d")
+ * await client.models.getEnrichmentSource("id")
*/
public async getEnrichmentSource(
id: string,
@@ -72,13 +72,12 @@ export class Models {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -144,7 +143,9 @@ export class Models {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.models.post("248df4b7-aa70-47b8-a036-33ac447e668d")
+ * await client.models.post("connection_id", {
+ * configuration: undefined
+ * })
*/
public async post(
connectionId: string,
@@ -162,13 +163,12 @@ export class Models {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -231,11 +231,22 @@ export class Models {
* @example
* await client.models.preview({
* body: {
+ * additional_fields: undefined,
* configuration: {
- * "table": "public.users"
+ * "configuration": {
+ * "key": "value"
+ * }
* },
- * connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
- * name: "Users"
+ * connection_id: "connection_id",
+ * enricher: undefined,
+ * fields: undefined,
+ * identifier: undefined,
+ * labels: undefined,
+ * name: "name",
+ * organization_id: undefined,
+ * policies: undefined,
+ * relations: undefined,
+ * tracking_columns: undefined
* }
* })
*/
@@ -260,13 +271,12 @@ export class Models {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -337,13 +347,12 @@ export class Models {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -399,11 +408,22 @@ export class Models {
* @example
* await client.models.create({
* body: {
+ * additional_fields: undefined,
* configuration: {
- * "table": "public.users"
+ * "configuration": {
+ * "key": "value"
+ * }
* },
- * connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
- * name: "Users"
+ * connection_id: "connection_id",
+ * enricher: undefined,
+ * fields: undefined,
+ * identifier: undefined,
+ * labels: undefined,
+ * name: "name",
+ * organization_id: undefined,
+ * policies: undefined,
+ * relations: undefined,
+ * tracking_columns: undefined
* }
* })
*/
@@ -428,13 +448,12 @@ export class Models {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -494,7 +513,7 @@ export class Models {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.models.get("248df4b7-aa70-47b8-a036-33ac447e668d")
+ * await client.models.get("id")
*/
public async get(
id: string,
@@ -518,13 +537,12 @@ export class Models {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -582,13 +600,24 @@ export class Models {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.models.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
- * async: false,
+ * await client.models.update("id", {
+ * additional_fields: undefined,
* configuration: {
- * "table": "public.users"
+ * "configuration": {
+ * "key": "value"
+ * }
* },
- * connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
- * name: "Users"
+ * connection_id: "connection_id",
+ * enricher: undefined,
+ * fields: undefined,
+ * identifier: undefined,
+ * labels: undefined,
+ * name: "name",
+ * organization_id: undefined,
+ * policies: undefined,
+ * refresh: undefined,
+ * relations: undefined,
+ * tracking_columns: undefined
* })
*/
public async update(
@@ -613,13 +642,12 @@ export class Models {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -680,7 +708,7 @@ export class Models {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.models.remove("248df4b7-aa70-47b8-a036-33ac447e668d")
+ * await client.models.remove("id")
*/
public async remove(
id: string,
@@ -704,13 +732,12 @@ export class Models {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -772,7 +799,7 @@ export class Models {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.models.sample("248df4b7-aa70-47b8-a036-33ac447e668d")
+ * await client.models.sample("id")
*/
public async sample(
id: string,
@@ -796,13 +823,12 @@ export class Models {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/models/client/requests/GetEnrichmentInputFieldsRequest.ts b/src/api/resources/models/client/requests/GetEnrichmentInputFieldsRequest.ts
index 0dcd0bf..8a1aa81 100644
--- a/src/api/resources/models/client/requests/GetEnrichmentInputFieldsRequest.ts
+++ b/src/api/resources/models/client/requests/GetEnrichmentInputFieldsRequest.ts
@@ -6,7 +6,9 @@ import * as Polytomic from "../../../../index";
/**
* @example
- * {}
+ * {
+ * configuration: undefined
+ * }
*/
export interface GetEnrichmentInputFieldsRequest {
configuration?: Polytomic.V2EnricherConfiguration;
diff --git a/src/api/resources/models/client/requests/ModelsCreateRequest.ts b/src/api/resources/models/client/requests/ModelsCreateRequest.ts
index 75b33d1..e44ed4c 100644
--- a/src/api/resources/models/client/requests/ModelsCreateRequest.ts
+++ b/src/api/resources/models/client/requests/ModelsCreateRequest.ts
@@ -8,11 +8,22 @@ import * as Polytomic from "../../../../index";
* @example
* {
* body: {
+ * additional_fields: undefined,
* configuration: {
- * "table": "public.users"
+ * "configuration": {
+ * "key": "value"
+ * }
* },
- * connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
- * name: "Users"
+ * connection_id: "connection_id",
+ * enricher: undefined,
+ * fields: undefined,
+ * identifier: undefined,
+ * labels: undefined,
+ * name: "name",
+ * organization_id: undefined,
+ * policies: undefined,
+ * relations: undefined,
+ * tracking_columns: undefined
* }
* }
*/
diff --git a/src/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.ts b/src/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.ts
index 2bbe9af..ae471d9 100644
--- a/src/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.ts
+++ b/src/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.ts
@@ -7,5 +7,5 @@
* {}
*/
export interface ModelsGetEnrichmentSourceRequest {
- params?: Record;
+ params?: Record;
}
diff --git a/src/api/resources/models/client/requests/ModelsPreviewRequest.ts b/src/api/resources/models/client/requests/ModelsPreviewRequest.ts
index 1685eef..4017994 100644
--- a/src/api/resources/models/client/requests/ModelsPreviewRequest.ts
+++ b/src/api/resources/models/client/requests/ModelsPreviewRequest.ts
@@ -8,11 +8,22 @@ import * as Polytomic from "../../../../index";
* @example
* {
* body: {
+ * additional_fields: undefined,
* configuration: {
- * "table": "public.users"
+ * "configuration": {
+ * "key": "value"
+ * }
* },
- * connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
- * name: "Users"
+ * connection_id: "connection_id",
+ * enricher: undefined,
+ * fields: undefined,
+ * identifier: undefined,
+ * labels: undefined,
+ * name: "name",
+ * organization_id: undefined,
+ * policies: undefined,
+ * relations: undefined,
+ * tracking_columns: undefined
* }
* }
*/
diff --git a/src/api/resources/models/client/requests/UpdateModelRequest.ts b/src/api/resources/models/client/requests/UpdateModelRequest.ts
index 1d43dda..3ceeed3 100644
--- a/src/api/resources/models/client/requests/UpdateModelRequest.ts
+++ b/src/api/resources/models/client/requests/UpdateModelRequest.ts
@@ -7,27 +7,38 @@ import * as Polytomic from "../../../../index";
/**
* @example
* {
- * async: false,
+ * additional_fields: undefined,
* configuration: {
- * "table": "public.users"
+ * "configuration": {
+ * "key": "value"
+ * }
* },
- * connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
- * name: "Users"
+ * connection_id: "connection_id",
+ * enricher: undefined,
+ * fields: undefined,
+ * identifier: undefined,
+ * labels: undefined,
+ * name: "name",
+ * organization_id: undefined,
+ * policies: undefined,
+ * refresh: undefined,
+ * relations: undefined,
+ * tracking_columns: undefined
* }
*/
export interface UpdateModelRequest {
async?: boolean;
- additional_fields?: Polytomic.ModelModelFieldRequest[];
+ additional_fields?: Polytomic.ModelModelFieldRequest[] | null;
configuration: Record;
connection_id: string;
enricher?: Polytomic.Enrichment;
- fields?: string[];
+ fields?: string[] | null;
identifier?: string;
- labels?: string[];
+ labels?: string[] | null;
name: string;
- organization_id?: string;
- policies?: string[];
+ organization_id?: string | null;
+ policies?: string[] | null;
refresh?: boolean;
- relations?: Polytomic.ModelRelation[];
- tracking_columns?: string[];
+ relations?: Polytomic.ModelRelation[] | null;
+ tracking_columns?: string[] | null;
}
diff --git a/src/api/resources/notifications/client/Client.ts b/src/api/resources/notifications/client/Client.ts
index f5ea8b8..670769c 100644
--- a/src/api/resources/notifications/client/Client.ts
+++ b/src/api/resources/notifications/client/Client.ts
@@ -5,6 +5,7 @@
import * as environments from "../../../../environments";
import * as core from "../../../../core";
import * as Polytomic from "../../../index";
+import { toJson } from "../../../../core/json";
import urlJoin from "url-join";
import * as errors from "../../../../errors/index";
@@ -15,7 +16,7 @@ export declare namespace Notifications {
baseUrl?: core.Supplier;
token: core.Supplier;
/** Override the X-Polytomic-Version header */
- version?: core.Supplier;
+ version?: core.Supplier;
}
export interface RequestOptions {
@@ -26,7 +27,7 @@ export declare namespace Notifications {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the X-Polytomic-Version header */
- version?: string | undefined;
+ version?: unknown;
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -58,13 +59,12 @@ export class Notifications {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -119,7 +119,9 @@ export class Notifications {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.notifications.setGlobalErrorSubscribers()
+ * await client.notifications.setGlobalErrorSubscribers({
+ * emails: undefined
+ * })
*/
public async setGlobalErrorSubscribers(
request: Polytomic.V4GlobalErrorSubscribersRequest = {},
@@ -136,13 +138,12 @@ export class Notifications {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/notifications/client/requests/V4GlobalErrorSubscribersRequest.ts b/src/api/resources/notifications/client/requests/V4GlobalErrorSubscribersRequest.ts
index f7a9dd2..447e17b 100644
--- a/src/api/resources/notifications/client/requests/V4GlobalErrorSubscribersRequest.ts
+++ b/src/api/resources/notifications/client/requests/V4GlobalErrorSubscribersRequest.ts
@@ -4,8 +4,10 @@
/**
* @example
- * {}
+ * {
+ * emails: undefined
+ * }
*/
export interface V4GlobalErrorSubscribersRequest {
- emails?: string[];
+ emails?: string[] | null;
}
diff --git a/src/api/resources/organization/client/Client.ts b/src/api/resources/organization/client/Client.ts
index e6641c2..5f2a05a 100644
--- a/src/api/resources/organization/client/Client.ts
+++ b/src/api/resources/organization/client/Client.ts
@@ -5,6 +5,7 @@
import * as environments from "../../../../environments";
import * as core from "../../../../core";
import * as Polytomic from "../../../index";
+import { toJson } from "../../../../core/json";
import urlJoin from "url-join";
import * as errors from "../../../../errors/index";
@@ -15,7 +16,7 @@ export declare namespace Organization {
baseUrl?: core.Supplier;
token: core.Supplier;
/** Override the X-Polytomic-Version header */
- version?: core.Supplier;
+ version?: core.Supplier;
}
export interface RequestOptions {
@@ -26,7 +27,7 @@ export declare namespace Organization {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the X-Polytomic-Version header */
- version?: string | undefined;
+ version?: unknown;
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -60,13 +61,12 @@ export class Organization {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -125,7 +125,12 @@ export class Organization {
*
* @example
* await client.organization.create({
- * name: "My Organization"
+ * client_id: undefined,
+ * client_secret: undefined,
+ * issuer: undefined,
+ * name: "name",
+ * sso_domain: undefined,
+ * sso_org_id: undefined
* })
*/
public async create(
@@ -143,13 +148,12 @@ export class Organization {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -204,16 +208,18 @@ export class Organization {
* > Organization endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/guides/obtaining-api-keys#partner-keys).
*
* @param {string} id
+ * @param {Polytomic.OrganizationGetRequest} request
* @param {Organization.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Polytomic.UnauthorizedError}
* @throws {@link Polytomic.NotFoundError}
*
* @example
- * await client.organization.get("248df4b7-aa70-47b8-a036-33ac447e668d")
+ * await client.organization.get("id")
*/
public async get(
id: string,
+ request: Polytomic.OrganizationGetRequest = {},
requestOptions?: Organization.RequestOptions,
): Promise {
const _response = await core.fetcher({
@@ -227,13 +233,12 @@ export class Organization {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -292,8 +297,13 @@ export class Organization {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.organization.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
- * name: "My Organization"
+ * await client.organization.update("id", {
+ * client_id: undefined,
+ * client_secret: undefined,
+ * issuer: undefined,
+ * name: "name",
+ * sso_domain: undefined,
+ * sso_org_id: undefined
* })
*/
public async update(
@@ -312,13 +322,12 @@ export class Organization {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -373,6 +382,7 @@ export class Organization {
* > Organization endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/guides/obtaining-api-keys#partner-keys).
*
* @param {string} id
+ * @param {Polytomic.OrganizationRemoveRequest} request
* @param {Organization.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Polytomic.UnauthorizedError}
@@ -380,9 +390,13 @@ export class Organization {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.organization.remove("248df4b7-aa70-47b8-a036-33ac447e668d")
+ * await client.organization.remove("id")
*/
- public async remove(id: string, requestOptions?: Organization.RequestOptions): Promise {
+ public async remove(
+ id: string,
+ request: Polytomic.OrganizationRemoveRequest = {},
+ requestOptions?: Organization.RequestOptions,
+ ): Promise {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.baseUrl)) ??
@@ -394,13 +408,12 @@ export class Organization {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/organization/client/requests/CreateOrganizationRequestSchema.ts b/src/api/resources/organization/client/requests/CreateOrganizationRequestSchema.ts
index 3ab77ab..5a4e10f 100644
--- a/src/api/resources/organization/client/requests/CreateOrganizationRequestSchema.ts
+++ b/src/api/resources/organization/client/requests/CreateOrganizationRequestSchema.ts
@@ -5,7 +5,12 @@
/**
* @example
* {
- * name: "My Organization"
+ * client_id: undefined,
+ * client_secret: undefined,
+ * issuer: undefined,
+ * name: "name",
+ * sso_domain: undefined,
+ * sso_org_id: undefined
* }
*/
export interface CreateOrganizationRequestSchema {
diff --git a/src/api/resources/organization/client/requests/OrganizationGetRequest.ts b/src/api/resources/organization/client/requests/OrganizationGetRequest.ts
new file mode 100644
index 0000000..b91772f
--- /dev/null
+++ b/src/api/resources/organization/client/requests/OrganizationGetRequest.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface OrganizationGetRequest {}
diff --git a/src/api/resources/organization/client/requests/OrganizationRemoveRequest.ts b/src/api/resources/organization/client/requests/OrganizationRemoveRequest.ts
new file mode 100644
index 0000000..93157a6
--- /dev/null
+++ b/src/api/resources/organization/client/requests/OrganizationRemoveRequest.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface OrganizationRemoveRequest {}
diff --git a/src/api/resources/organization/client/requests/UpdateOrganizationRequestSchema.ts b/src/api/resources/organization/client/requests/UpdateOrganizationRequestSchema.ts
index a7ffdb2..af1e1b4 100644
--- a/src/api/resources/organization/client/requests/UpdateOrganizationRequestSchema.ts
+++ b/src/api/resources/organization/client/requests/UpdateOrganizationRequestSchema.ts
@@ -5,7 +5,12 @@
/**
* @example
* {
- * name: "My Organization"
+ * client_id: undefined,
+ * client_secret: undefined,
+ * issuer: undefined,
+ * name: "name",
+ * sso_domain: undefined,
+ * sso_org_id: undefined
* }
*/
export interface UpdateOrganizationRequestSchema {
diff --git a/src/api/resources/organization/client/requests/index.ts b/src/api/resources/organization/client/requests/index.ts
index 49101f2..5c32bbf 100644
--- a/src/api/resources/organization/client/requests/index.ts
+++ b/src/api/resources/organization/client/requests/index.ts
@@ -1,2 +1,4 @@
export { type CreateOrganizationRequestSchema } from "./CreateOrganizationRequestSchema";
+export { type OrganizationGetRequest } from "./OrganizationGetRequest";
export { type UpdateOrganizationRequestSchema } from "./UpdateOrganizationRequestSchema";
+export { type OrganizationRemoveRequest } from "./OrganizationRemoveRequest";
diff --git a/src/api/resources/permissions/client/Client.ts b/src/api/resources/permissions/client/Client.ts
index 074f241..dc506ad 100644
--- a/src/api/resources/permissions/client/Client.ts
+++ b/src/api/resources/permissions/client/Client.ts
@@ -14,7 +14,7 @@ export declare namespace Permissions {
baseUrl?: core.Supplier;
token: core.Supplier;
/** Override the X-Polytomic-Version header */
- version?: core.Supplier;
+ version?: core.Supplier;
}
export interface RequestOptions {
@@ -25,7 +25,7 @@ export declare namespace Permissions {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the X-Polytomic-Version header */
- version?: string | undefined;
+ version?: unknown;
/** Additional headers to include in the request. */
headers?: Record;
}
diff --git a/src/api/resources/permissions/resources/policies/client/Client.ts b/src/api/resources/permissions/resources/policies/client/Client.ts
index 1cecf1e..1aa51ba 100644
--- a/src/api/resources/permissions/resources/policies/client/Client.ts
+++ b/src/api/resources/permissions/resources/policies/client/Client.ts
@@ -5,6 +5,7 @@
import * as environments from "../../../../../../environments";
import * as core from "../../../../../../core";
import * as Polytomic from "../../../../../index";
+import { toJson } from "../../../../../../core/json";
import urlJoin from "url-join";
import * as errors from "../../../../../../errors/index";
@@ -15,7 +16,7 @@ export declare namespace Policies {
baseUrl?: core.Supplier;
token: core.Supplier;
/** Override the X-Polytomic-Version header */
- version?: core.Supplier;
+ version?: core.Supplier;
}
export interface RequestOptions {
@@ -26,7 +27,7 @@ export declare namespace Policies {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the X-Polytomic-Version header */
- version?: string | undefined;
+ version?: unknown;
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -56,13 +57,12 @@ export class Policies {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -118,7 +118,9 @@ export class Policies {
*
* @example
* await client.permissions.policies.create({
- * name: "Custom"
+ * name: "name",
+ * organization_id: undefined,
+ * policy_actions: null
* })
*/
public async create(
@@ -136,13 +138,12 @@ export class Policies {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -195,6 +196,7 @@ export class Policies {
/**
* @param {string} id
+ * @param {Polytomic.permissions.PoliciesGetRequest} request
* @param {Policies.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Polytomic.UnauthorizedError}
@@ -202,9 +204,13 @@ export class Policies {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.permissions.policies.get("248df4b7-aa70-47b8-a036-33ac447e668d")
+ * await client.permissions.policies.get("id")
*/
- public async get(id: string, requestOptions?: Policies.RequestOptions): Promise {
+ public async get(
+ id: string,
+ request: Polytomic.permissions.PoliciesGetRequest = {},
+ requestOptions?: Policies.RequestOptions,
+ ): Promise {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.baseUrl)) ??
@@ -216,13 +222,12 @@ export class Policies {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -282,8 +287,10 @@ export class Policies {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.permissions.policies.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
- * name: "Custom"
+ * await client.permissions.policies.update("id", {
+ * name: "name",
+ * organization_id: undefined,
+ * policy_actions: null
* })
*/
public async update(
@@ -302,13 +309,12 @@ export class Policies {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -363,6 +369,7 @@ export class Policies {
/**
* @param {string} id
+ * @param {Polytomic.permissions.PoliciesRemoveRequest} request
* @param {Policies.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Polytomic.UnauthorizedError}
@@ -371,9 +378,13 @@ export class Policies {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.permissions.policies.remove("248df4b7-aa70-47b8-a036-33ac447e668d")
+ * await client.permissions.policies.remove("id")
*/
- public async remove(id: string, requestOptions?: Policies.RequestOptions): Promise {
+ public async remove(
+ id: string,
+ request: Polytomic.permissions.PoliciesRemoveRequest = {},
+ requestOptions?: Policies.RequestOptions,
+ ): Promise {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.baseUrl)) ??
@@ -385,13 +396,12 @@ export class Policies {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/permissions/resources/policies/client/requests/CreatePolicyRequest.ts b/src/api/resources/permissions/resources/policies/client/requests/CreatePolicyRequest.ts
index 49d0c92..9522346 100644
--- a/src/api/resources/permissions/resources/policies/client/requests/CreatePolicyRequest.ts
+++ b/src/api/resources/permissions/resources/policies/client/requests/CreatePolicyRequest.ts
@@ -7,11 +7,13 @@ import * as Polytomic from "../../../../../../index";
/**
* @example
* {
- * name: "Custom"
+ * name: "name",
+ * organization_id: undefined,
+ * policy_actions: null
* }
*/
export interface CreatePolicyRequest {
name: string;
- organization_id?: string;
- policy_actions?: Polytomic.PolicyAction[];
+ organization_id?: string | null;
+ policy_actions: Polytomic.PolicyAction[] | null;
}
diff --git a/src/api/resources/permissions/resources/policies/client/requests/PoliciesGetRequest.ts b/src/api/resources/permissions/resources/policies/client/requests/PoliciesGetRequest.ts
new file mode 100644
index 0000000..d14f030
--- /dev/null
+++ b/src/api/resources/permissions/resources/policies/client/requests/PoliciesGetRequest.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface PoliciesGetRequest {}
diff --git a/src/api/resources/permissions/resources/policies/client/requests/PoliciesRemoveRequest.ts b/src/api/resources/permissions/resources/policies/client/requests/PoliciesRemoveRequest.ts
new file mode 100644
index 0000000..ca3daec
--- /dev/null
+++ b/src/api/resources/permissions/resources/policies/client/requests/PoliciesRemoveRequest.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface PoliciesRemoveRequest {}
diff --git a/src/api/resources/permissions/resources/policies/client/requests/UpdatePolicyRequest.ts b/src/api/resources/permissions/resources/policies/client/requests/UpdatePolicyRequest.ts
index e6df378..9898fe9 100644
--- a/src/api/resources/permissions/resources/policies/client/requests/UpdatePolicyRequest.ts
+++ b/src/api/resources/permissions/resources/policies/client/requests/UpdatePolicyRequest.ts
@@ -7,11 +7,13 @@ import * as Polytomic from "../../../../../../index";
/**
* @example
* {
- * name: "Custom"
+ * name: "name",
+ * organization_id: undefined,
+ * policy_actions: null
* }
*/
export interface UpdatePolicyRequest {
name: string;
- organization_id?: string;
- policy_actions?: Polytomic.PolicyAction[];
+ organization_id?: string | null;
+ policy_actions: Polytomic.PolicyAction[] | null;
}
diff --git a/src/api/resources/permissions/resources/policies/client/requests/index.ts b/src/api/resources/permissions/resources/policies/client/requests/index.ts
index 22e24c1..7978026 100644
--- a/src/api/resources/permissions/resources/policies/client/requests/index.ts
+++ b/src/api/resources/permissions/resources/policies/client/requests/index.ts
@@ -1,2 +1,4 @@
export { type CreatePolicyRequest } from "./CreatePolicyRequest";
+export { type PoliciesGetRequest } from "./PoliciesGetRequest";
export { type UpdatePolicyRequest } from "./UpdatePolicyRequest";
+export { type PoliciesRemoveRequest } from "./PoliciesRemoveRequest";
diff --git a/src/api/resources/permissions/resources/roles/client/Client.ts b/src/api/resources/permissions/resources/roles/client/Client.ts
index fd8e413..af92c27 100644
--- a/src/api/resources/permissions/resources/roles/client/Client.ts
+++ b/src/api/resources/permissions/resources/roles/client/Client.ts
@@ -5,6 +5,7 @@
import * as environments from "../../../../../../environments";
import * as core from "../../../../../../core";
import * as Polytomic from "../../../../../index";
+import { toJson } from "../../../../../../core/json";
import urlJoin from "url-join";
import * as errors from "../../../../../../errors/index";
@@ -15,7 +16,7 @@ export declare namespace Roles {
baseUrl?: core.Supplier;
token: core.Supplier;
/** Override the X-Polytomic-Version header */
- version?: core.Supplier;
+ version?: core.Supplier;
}
export interface RequestOptions {
@@ -26,7 +27,7 @@ export declare namespace Roles {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the X-Polytomic-Version header */
- version?: string | undefined;
+ version?: unknown;
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -56,13 +57,12 @@ export class Roles {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -118,7 +118,8 @@ export class Roles {
*
* @example
* await client.permissions.roles.create({
- * name: "Custom"
+ * name: "name",
+ * organization_id: undefined
* })
*/
public async create(
@@ -136,13 +137,12 @@ export class Roles {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -195,15 +195,20 @@ export class Roles {
/**
* @param {string} id
+ * @param {Polytomic.permissions.RolesGetRequest} request
* @param {Roles.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Polytomic.UnauthorizedError}
* @throws {@link Polytomic.NotFoundError}
*
* @example
- * await client.permissions.roles.get("248df4b7-aa70-47b8-a036-33ac447e668d")
+ * await client.permissions.roles.get("id")
*/
- public async get(id: string, requestOptions?: Roles.RequestOptions): Promise {
+ public async get(
+ id: string,
+ request: Polytomic.permissions.RolesGetRequest = {},
+ requestOptions?: Roles.RequestOptions,
+ ): Promise {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.baseUrl)) ??
@@ -215,13 +220,12 @@ export class Roles {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -279,8 +283,9 @@ export class Roles {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.permissions.roles.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
- * name: "Custom"
+ * await client.permissions.roles.update("id", {
+ * name: "name",
+ * organization_id: undefined
* })
*/
public async update(
@@ -299,13 +304,12 @@ export class Roles {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -360,6 +364,7 @@ export class Roles {
/**
* @param {string} id
+ * @param {Polytomic.permissions.RolesRemoveRequest} request
* @param {Roles.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Polytomic.UnauthorizedError}
@@ -368,9 +373,13 @@ export class Roles {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.permissions.roles.remove("248df4b7-aa70-47b8-a036-33ac447e668d")
+ * await client.permissions.roles.remove("id")
*/
- public async remove(id: string, requestOptions?: Roles.RequestOptions): Promise {
+ public async remove(
+ id: string,
+ request: Polytomic.permissions.RolesRemoveRequest = {},
+ requestOptions?: Roles.RequestOptions,
+ ): Promise {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.baseUrl)) ??
@@ -382,13 +391,12 @@ export class Roles {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/permissions/resources/roles/client/requests/CreateRoleRequest.ts b/src/api/resources/permissions/resources/roles/client/requests/CreateRoleRequest.ts
index c9c8602..de5dff0 100644
--- a/src/api/resources/permissions/resources/roles/client/requests/CreateRoleRequest.ts
+++ b/src/api/resources/permissions/resources/roles/client/requests/CreateRoleRequest.ts
@@ -5,10 +5,11 @@
/**
* @example
* {
- * name: "Custom"
+ * name: "name",
+ * organization_id: undefined
* }
*/
export interface CreateRoleRequest {
name: string;
- organization_id?: string;
+ organization_id?: string | null;
}
diff --git a/src/api/resources/permissions/resources/roles/client/requests/RolesGetRequest.ts b/src/api/resources/permissions/resources/roles/client/requests/RolesGetRequest.ts
new file mode 100644
index 0000000..f24815b
--- /dev/null
+++ b/src/api/resources/permissions/resources/roles/client/requests/RolesGetRequest.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface RolesGetRequest {}
diff --git a/src/api/resources/permissions/resources/roles/client/requests/RolesRemoveRequest.ts b/src/api/resources/permissions/resources/roles/client/requests/RolesRemoveRequest.ts
new file mode 100644
index 0000000..229ebff
--- /dev/null
+++ b/src/api/resources/permissions/resources/roles/client/requests/RolesRemoveRequest.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface RolesRemoveRequest {}
diff --git a/src/api/resources/permissions/resources/roles/client/requests/UpdateRoleRequest.ts b/src/api/resources/permissions/resources/roles/client/requests/UpdateRoleRequest.ts
index 6a21845..382289a 100644
--- a/src/api/resources/permissions/resources/roles/client/requests/UpdateRoleRequest.ts
+++ b/src/api/resources/permissions/resources/roles/client/requests/UpdateRoleRequest.ts
@@ -5,10 +5,11 @@
/**
* @example
* {
- * name: "Custom"
+ * name: "name",
+ * organization_id: undefined
* }
*/
export interface UpdateRoleRequest {
name: string;
- organization_id?: string;
+ organization_id?: string | null;
}
diff --git a/src/api/resources/permissions/resources/roles/client/requests/index.ts b/src/api/resources/permissions/resources/roles/client/requests/index.ts
index a10d79c..2e2b7b9 100644
--- a/src/api/resources/permissions/resources/roles/client/requests/index.ts
+++ b/src/api/resources/permissions/resources/roles/client/requests/index.ts
@@ -1,2 +1,4 @@
export { type CreateRoleRequest } from "./CreateRoleRequest";
+export { type RolesGetRequest } from "./RolesGetRequest";
export { type UpdateRoleRequest } from "./UpdateRoleRequest";
+export { type RolesRemoveRequest } from "./RolesRemoveRequest";
diff --git a/src/api/resources/queryRunner/client/Client.ts b/src/api/resources/queryRunner/client/Client.ts
index a455196..d6cdddc 100644
--- a/src/api/resources/queryRunner/client/Client.ts
+++ b/src/api/resources/queryRunner/client/Client.ts
@@ -5,6 +5,7 @@
import * as environments from "../../../../environments";
import * as core from "../../../../core";
import * as Polytomic from "../../../index";
+import { toJson } from "../../../../core/json";
import urlJoin from "url-join";
import * as errors from "../../../../errors/index";
@@ -15,7 +16,7 @@ export declare namespace QueryRunner {
baseUrl?: core.Supplier;
token: core.Supplier;
/** Override the X-Polytomic-Version header */
- version?: core.Supplier;
+ version?: core.Supplier;
}
export interface RequestOptions {
@@ -26,7 +27,7 @@ export declare namespace QueryRunner {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the X-Polytomic-Version header */
- version?: string | undefined;
+ version?: unknown;
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -46,9 +47,7 @@ export class QueryRunner {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.queryRunner.runQuery("248df4b7-aa70-47b8-a036-33ac447e668d", {
- * query: "SELECT * FROM table"
- * })
+ * await client.queryRunner.runQuery("connection_id")
*/
public async runQuery(
connectionId: string,
@@ -72,13 +71,12 @@ export class QueryRunner {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -141,7 +139,7 @@ export class QueryRunner {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.queryRunner.getQuery("248df4b7-aa70-47b8-a036-33ac447e668d")
+ * await client.queryRunner.getQuery("id")
*/
public async getQuery(
id: string,
@@ -165,13 +163,12 @@ export class QueryRunner {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/queryRunner/client/requests/V4RunQueryRequest.ts b/src/api/resources/queryRunner/client/requests/V4RunQueryRequest.ts
index 4c92392..476b574 100644
--- a/src/api/resources/queryRunner/client/requests/V4RunQueryRequest.ts
+++ b/src/api/resources/queryRunner/client/requests/V4RunQueryRequest.ts
@@ -4,9 +4,7 @@
/**
* @example
- * {
- * query: "SELECT * FROM table"
- * }
+ * {}
*/
export interface V4RunQueryRequest {
/**
diff --git a/src/api/resources/schemas/client/Client.ts b/src/api/resources/schemas/client/Client.ts
index fa9ca08..bd1bc86 100644
--- a/src/api/resources/schemas/client/Client.ts
+++ b/src/api/resources/schemas/client/Client.ts
@@ -5,6 +5,7 @@
import * as environments from "../../../../environments";
import * as core from "../../../../core";
import * as Polytomic from "../../../index";
+import { toJson } from "../../../../core/json";
import urlJoin from "url-join";
import * as errors from "../../../../errors/index";
@@ -15,7 +16,7 @@ export declare namespace Schemas {
baseUrl?: core.Supplier;
token: core.Supplier;
/** Override the X-Polytomic-Version header */
- version?: core.Supplier;
+ version?: core.Supplier;
}
export interface RequestOptions {
@@ -26,7 +27,7 @@ export declare namespace Schemas {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the X-Polytomic-Version header */
- version?: string | undefined;
+ version?: unknown;
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -47,7 +48,9 @@ export class Schemas {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.schemas.upsertField("248df4b7-aa70-47b8-a036-33ac447e668d", "public.users")
+ * await client.schemas.upsertField("connection_id", "schema_id", {
+ * fields: undefined
+ * })
*/
public async upsertField(
connectionId: string,
@@ -66,13 +69,12 @@ export class Schemas {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -127,6 +129,7 @@ export class Schemas {
* @param {string} connectionId
* @param {string} schemaId
* @param {string} fieldId
+ * @param {Polytomic.SchemasDeleteFieldRequest} request
* @param {Schemas.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Polytomic.BadRequestError}
@@ -135,12 +138,13 @@ export class Schemas {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.schemas.deleteField("248df4b7-aa70-47b8-a036-33ac447e668d", "public.users", "first_name")
+ * await client.schemas.deleteField("connection_id", "schema_id", "field_id")
*/
public async deleteField(
connectionId: string,
schemaId: string,
fieldId: string,
+ request: Polytomic.SchemasDeleteFieldRequest = {},
requestOptions?: Schemas.RequestOptions,
): Promise {
const _response = await core.fetcher({
@@ -154,13 +158,12 @@ export class Schemas {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -222,7 +225,9 @@ export class Schemas {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.schemas.setPrimaryKeys("248df4b7-aa70-47b8-a036-33ac447e668d", "public.users")
+ * await client.schemas.setPrimaryKeys("connection_id", "schema_id", {
+ * fields: undefined
+ * })
*/
public async setPrimaryKeys(
connectionId: string,
@@ -241,13 +246,12 @@ export class Schemas {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -303,6 +307,7 @@ export class Schemas {
*
* @param {string} connectionId
* @param {string} schemaId
+ * @param {Polytomic.SchemasResetPrimaryKeysRequest} request
* @param {Schemas.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Polytomic.BadRequestError}
@@ -311,11 +316,12 @@ export class Schemas {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.schemas.resetPrimaryKeys("248df4b7-aa70-47b8-a036-33ac447e668d", "public.users")
+ * await client.schemas.resetPrimaryKeys("connection_id", "schema_id")
*/
public async resetPrimaryKeys(
connectionId: string,
schemaId: string,
+ request: Polytomic.SchemasResetPrimaryKeysRequest = {},
requestOptions?: Schemas.RequestOptions,
): Promise {
const _response = await core.fetcher({
@@ -329,13 +335,12 @@ export class Schemas {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -387,6 +392,7 @@ export class Schemas {
/**
* @param {string} id
+ * @param {Polytomic.SchemasRefreshRequest} request
* @param {Schemas.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Polytomic.BadRequestError}
@@ -395,9 +401,13 @@ export class Schemas {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.schemas.refresh("248df4b7-aa70-47b8-a036-33ac447e668d")
+ * await client.schemas.refresh("id")
*/
- public async refresh(id: string, requestOptions?: Schemas.RequestOptions): Promise {
+ public async refresh(
+ id: string,
+ request: Polytomic.SchemasRefreshRequest = {},
+ requestOptions?: Schemas.RequestOptions,
+ ): Promise {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.baseUrl)) ??
@@ -409,13 +419,12 @@ export class Schemas {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -469,6 +478,7 @@ export class Schemas {
* Polytomic periodically inspects the schemas for connections to discover new fields and update metadata. This endpoint returns the current inspection status.
*
* @param {string} id
+ * @param {Polytomic.SchemasGetStatusRequest} request
* @param {Schemas.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Polytomic.BadRequestError}
@@ -477,10 +487,11 @@ export class Schemas {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.schemas.getStatus("248df4b7-aa70-47b8-a036-33ac447e668d")
+ * await client.schemas.getStatus("id")
*/
public async getStatus(
id: string,
+ request: Polytomic.SchemasGetStatusRequest = {},
requestOptions?: Schemas.RequestOptions,
): Promise {
const _response = await core.fetcher({
@@ -494,13 +505,12 @@ export class Schemas {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -553,6 +563,7 @@ export class Schemas {
/**
* @param {string} id
* @param {string} schemaId
+ * @param {Polytomic.SchemasGetRequest} request
* @param {Schemas.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Polytomic.BadRequestError}
@@ -561,11 +572,12 @@ export class Schemas {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.schemas.get("248df4b7-aa70-47b8-a036-33ac447e668d", "public.users")
+ * await client.schemas.get("id", "schema_id")
*/
public async get(
id: string,
schemaId: string,
+ request: Polytomic.SchemasGetRequest = {},
requestOptions?: Schemas.RequestOptions,
): Promise {
const _response = await core.fetcher({
@@ -579,13 +591,12 @@ export class Schemas {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -638,6 +649,7 @@ export class Schemas {
/**
* @param {string} id
* @param {string} schemaId
+ * @param {Polytomic.SchemasGetRecordsRequest} request
* @param {Schemas.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Polytomic.BadRequestError}
@@ -647,11 +659,12 @@ export class Schemas {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.schemas.getRecords("248df4b7-aa70-47b8-a036-33ac447e668d", "public.users")
+ * await client.schemas.getRecords("id", "schema_id")
*/
public async getRecords(
id: string,
schemaId: string,
+ request: Polytomic.SchemasGetRecordsRequest = {},
requestOptions?: Schemas.RequestOptions,
): Promise {
const _response = await core.fetcher({
@@ -665,13 +678,12 @@ export class Schemas {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/schemas/client/requests/SchemasDeleteFieldRequest.ts b/src/api/resources/schemas/client/requests/SchemasDeleteFieldRequest.ts
new file mode 100644
index 0000000..3a376b6
--- /dev/null
+++ b/src/api/resources/schemas/client/requests/SchemasDeleteFieldRequest.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface SchemasDeleteFieldRequest {}
diff --git a/src/api/resources/schemas/client/requests/SchemasGetRecordsRequest.ts b/src/api/resources/schemas/client/requests/SchemasGetRecordsRequest.ts
new file mode 100644
index 0000000..d8442cb
--- /dev/null
+++ b/src/api/resources/schemas/client/requests/SchemasGetRecordsRequest.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface SchemasGetRecordsRequest {}
diff --git a/src/api/resources/schemas/client/requests/SchemasGetRequest.ts b/src/api/resources/schemas/client/requests/SchemasGetRequest.ts
new file mode 100644
index 0000000..d53054a
--- /dev/null
+++ b/src/api/resources/schemas/client/requests/SchemasGetRequest.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface SchemasGetRequest {}
diff --git a/src/api/resources/schemas/client/requests/SchemasGetStatusRequest.ts b/src/api/resources/schemas/client/requests/SchemasGetStatusRequest.ts
new file mode 100644
index 0000000..efb9b0b
--- /dev/null
+++ b/src/api/resources/schemas/client/requests/SchemasGetStatusRequest.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface SchemasGetStatusRequest {}
diff --git a/src/api/resources/schemas/client/requests/SchemasRefreshRequest.ts b/src/api/resources/schemas/client/requests/SchemasRefreshRequest.ts
new file mode 100644
index 0000000..b30c830
--- /dev/null
+++ b/src/api/resources/schemas/client/requests/SchemasRefreshRequest.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface SchemasRefreshRequest {}
diff --git a/src/api/resources/schemas/client/requests/SchemasResetPrimaryKeysRequest.ts b/src/api/resources/schemas/client/requests/SchemasResetPrimaryKeysRequest.ts
new file mode 100644
index 0000000..be72967
--- /dev/null
+++ b/src/api/resources/schemas/client/requests/SchemasResetPrimaryKeysRequest.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface SchemasResetPrimaryKeysRequest {}
diff --git a/src/api/resources/schemas/client/requests/SetPrimaryKeysRequest.ts b/src/api/resources/schemas/client/requests/SetPrimaryKeysRequest.ts
index 68065e8..9e9ccd5 100644
--- a/src/api/resources/schemas/client/requests/SetPrimaryKeysRequest.ts
+++ b/src/api/resources/schemas/client/requests/SetPrimaryKeysRequest.ts
@@ -6,8 +6,10 @@ import * as Polytomic from "../../../../index";
/**
* @example
- * {}
+ * {
+ * fields: undefined
+ * }
*/
export interface SetPrimaryKeysRequest {
- fields?: Polytomic.SchemaPrimaryKeyOverrideInput[];
+ fields?: Polytomic.SchemaPrimaryKeyOverrideInput[] | null;
}
diff --git a/src/api/resources/schemas/client/requests/UpsertSchemaFieldRequest.ts b/src/api/resources/schemas/client/requests/UpsertSchemaFieldRequest.ts
index 21a7ce2..4d4c0c0 100644
--- a/src/api/resources/schemas/client/requests/UpsertSchemaFieldRequest.ts
+++ b/src/api/resources/schemas/client/requests/UpsertSchemaFieldRequest.ts
@@ -6,8 +6,10 @@ import * as Polytomic from "../../../../index";
/**
* @example
- * {}
+ * {
+ * fields: undefined
+ * }
*/
export interface UpsertSchemaFieldRequest {
- fields?: Polytomic.V4UserFieldRequest[];
+ fields?: Polytomic.V4UserFieldRequest[] | null;
}
diff --git a/src/api/resources/schemas/client/requests/index.ts b/src/api/resources/schemas/client/requests/index.ts
index 30bec47..6bea874 100644
--- a/src/api/resources/schemas/client/requests/index.ts
+++ b/src/api/resources/schemas/client/requests/index.ts
@@ -1,2 +1,8 @@
export { type UpsertSchemaFieldRequest } from "./UpsertSchemaFieldRequest";
+export { type SchemasDeleteFieldRequest } from "./SchemasDeleteFieldRequest";
export { type SetPrimaryKeysRequest } from "./SetPrimaryKeysRequest";
+export { type SchemasResetPrimaryKeysRequest } from "./SchemasResetPrimaryKeysRequest";
+export { type SchemasRefreshRequest } from "./SchemasRefreshRequest";
+export { type SchemasGetStatusRequest } from "./SchemasGetStatusRequest";
+export { type SchemasGetRequest } from "./SchemasGetRequest";
+export { type SchemasGetRecordsRequest } from "./SchemasGetRecordsRequest";
diff --git a/src/api/resources/users/client/Client.ts b/src/api/resources/users/client/Client.ts
index 57c9ba5..9bf56ce 100644
--- a/src/api/resources/users/client/Client.ts
+++ b/src/api/resources/users/client/Client.ts
@@ -5,6 +5,7 @@
import * as environments from "../../../../environments";
import * as core from "../../../../core";
import * as Polytomic from "../../../index";
+import { toJson } from "../../../../core/json";
import urlJoin from "url-join";
import * as errors from "../../../../errors/index";
@@ -15,7 +16,7 @@ export declare namespace Users {
baseUrl?: core.Supplier;
token: core.Supplier;
/** Override the X-Polytomic-Version header */
- version?: core.Supplier;
+ version?: core.Supplier;
}
export interface RequestOptions {
@@ -26,7 +27,7 @@ export declare namespace Users {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the X-Polytomic-Version header */
- version?: string | undefined;
+ version?: unknown;
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -41,15 +42,20 @@ export class Users {
* > User endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/guides/obtaining-api-keys#partner-keys).
*
* @param {string} orgId
+ * @param {Polytomic.UsersListRequest} request
* @param {Users.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Polytomic.UnauthorizedError}
* @throws {@link Polytomic.NotFoundError}
*
* @example
- * await client.users.list("248df4b7-aa70-47b8-a036-33ac447e668d")
+ * await client.users.list("org_id")
*/
- public async list(orgId: string, requestOptions?: Users.RequestOptions): Promise {
+ public async list(
+ orgId: string,
+ request: Polytomic.UsersListRequest = {},
+ requestOptions?: Users.RequestOptions,
+ ): Promise {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.baseUrl)) ??
@@ -61,13 +67,12 @@ export class Users {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -127,8 +132,9 @@ export class Users {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.users.create("248df4b7-aa70-47b8-a036-33ac447e668d", {
- * email: "mail@example.com"
+ * await client.users.create("org_id", {
+ * email: "email",
+ * role: undefined
* })
*/
public async create(
@@ -147,13 +153,12 @@ export class Users {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -207,8 +212,9 @@ export class Users {
* >
* > User endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/guides/obtaining-api-keys#partner-keys).
*
- * @param {string} id
* @param {string} orgId
+ * @param {string} id
+ * @param {Polytomic.UsersGetRequest} request
* @param {Users.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Polytomic.UnauthorizedError}
@@ -216,11 +222,12 @@ export class Users {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.users.get("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
+ * await client.users.get("org_id", "id")
*/
public async get(
- id: string,
orgId: string,
+ id: string,
+ request: Polytomic.UsersGetRequest = {},
requestOptions?: Users.RequestOptions,
): Promise {
const _response = await core.fetcher({
@@ -234,13 +241,12 @@ export class Users {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -293,8 +299,8 @@ export class Users {
* >
* > User endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/guides/obtaining-api-keys#partner-keys).
*
- * @param {string} id
* @param {string} orgId
+ * @param {string} id
* @param {Polytomic.UpdateUserRequestSchema} request
* @param {Users.RequestOptions} requestOptions - Request-specific configuration.
*
@@ -303,13 +309,14 @@ export class Users {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.users.update("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
- * email: "mail@example.com"
+ * await client.users.update("org_id", "id", {
+ * email: "email",
+ * role: undefined
* })
*/
public async update(
- id: string,
orgId: string,
+ id: string,
request: Polytomic.UpdateUserRequestSchema,
requestOptions?: Users.RequestOptions,
): Promise {
@@ -324,13 +331,12 @@ export class Users {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -384,8 +390,9 @@ export class Users {
* >
* > User endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/guides/obtaining-api-keys#partner-keys).
*
- * @param {string} id
* @param {string} orgId
+ * @param {string} id
+ * @param {Polytomic.UsersRemoveRequest} request
* @param {Users.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Polytomic.UnauthorizedError}
@@ -393,11 +400,12 @@ export class Users {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.users.remove("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
+ * await client.users.remove("org_id", "id")
*/
public async remove(
- id: string,
orgId: string,
+ id: string,
+ request: Polytomic.UsersRemoveRequest = {},
requestOptions?: Users.RequestOptions,
): Promise {
const _response = await core.fetcher({
@@ -411,13 +419,12 @@ export class Users {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -480,9 +487,7 @@ export class Users {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.users.createApiKey("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
- * force: true
- * })
+ * await client.users.createApiKey("org_id", "id")
*/
public async createApiKey(
orgId: string,
@@ -507,13 +512,12 @@ export class Users {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/users/client/requests/CreateUserRequestSchema.ts b/src/api/resources/users/client/requests/CreateUserRequestSchema.ts
index 735a1fb..1fee7eb 100644
--- a/src/api/resources/users/client/requests/CreateUserRequestSchema.ts
+++ b/src/api/resources/users/client/requests/CreateUserRequestSchema.ts
@@ -5,7 +5,8 @@
/**
* @example
* {
- * email: "mail@example.com"
+ * email: "email",
+ * role: undefined
* }
*/
export interface CreateUserRequestSchema {
diff --git a/src/api/resources/users/client/requests/UpdateUserRequestSchema.ts b/src/api/resources/users/client/requests/UpdateUserRequestSchema.ts
index 8460459..57e5ae6 100644
--- a/src/api/resources/users/client/requests/UpdateUserRequestSchema.ts
+++ b/src/api/resources/users/client/requests/UpdateUserRequestSchema.ts
@@ -5,7 +5,8 @@
/**
* @example
* {
- * email: "mail@example.com"
+ * email: "email",
+ * role: undefined
* }
*/
export interface UpdateUserRequestSchema {
diff --git a/src/api/resources/users/client/requests/UsersCreateApiKeyRequest.ts b/src/api/resources/users/client/requests/UsersCreateApiKeyRequest.ts
index a836bb0..bbd0127 100644
--- a/src/api/resources/users/client/requests/UsersCreateApiKeyRequest.ts
+++ b/src/api/resources/users/client/requests/UsersCreateApiKeyRequest.ts
@@ -4,9 +4,7 @@
/**
* @example
- * {
- * force: true
- * }
+ * {}
*/
export interface UsersCreateApiKeyRequest {
force?: boolean;
diff --git a/src/api/resources/users/client/requests/UsersGetRequest.ts b/src/api/resources/users/client/requests/UsersGetRequest.ts
new file mode 100644
index 0000000..d67f3e9
--- /dev/null
+++ b/src/api/resources/users/client/requests/UsersGetRequest.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface UsersGetRequest {}
diff --git a/src/api/resources/users/client/requests/UsersListRequest.ts b/src/api/resources/users/client/requests/UsersListRequest.ts
new file mode 100644
index 0000000..4da668c
--- /dev/null
+++ b/src/api/resources/users/client/requests/UsersListRequest.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface UsersListRequest {}
diff --git a/src/api/resources/users/client/requests/UsersRemoveRequest.ts b/src/api/resources/users/client/requests/UsersRemoveRequest.ts
new file mode 100644
index 0000000..935e310
--- /dev/null
+++ b/src/api/resources/users/client/requests/UsersRemoveRequest.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface UsersRemoveRequest {}
diff --git a/src/api/resources/users/client/requests/index.ts b/src/api/resources/users/client/requests/index.ts
index e1d3dd7..0336ffb 100644
--- a/src/api/resources/users/client/requests/index.ts
+++ b/src/api/resources/users/client/requests/index.ts
@@ -1,3 +1,6 @@
+export { type UsersListRequest } from "./UsersListRequest";
export { type CreateUserRequestSchema } from "./CreateUserRequestSchema";
+export { type UsersGetRequest } from "./UsersGetRequest";
export { type UpdateUserRequestSchema } from "./UpdateUserRequestSchema";
+export { type UsersRemoveRequest } from "./UsersRemoveRequest";
export { type UsersCreateApiKeyRequest } from "./UsersCreateApiKeyRequest";
diff --git a/src/api/resources/webhooks/client/Client.ts b/src/api/resources/webhooks/client/Client.ts
index 241df37..1fbba9c 100644
--- a/src/api/resources/webhooks/client/Client.ts
+++ b/src/api/resources/webhooks/client/Client.ts
@@ -5,6 +5,7 @@
import * as environments from "../../../../environments";
import * as core from "../../../../core";
import * as Polytomic from "../../../index";
+import { toJson } from "../../../../core/json";
import urlJoin from "url-join";
import * as errors from "../../../../errors/index";
@@ -15,7 +16,7 @@ export declare namespace Webhooks {
baseUrl?: core.Supplier;
token: core.Supplier;
/** Override the X-Polytomic-Version header */
- version?: core.Supplier;
+ version?: core.Supplier;
}
export interface RequestOptions {
@@ -26,7 +27,7 @@ export declare namespace Webhooks {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the X-Polytomic-Version header */
- version?: string | undefined;
+ version?: unknown;
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -62,13 +63,12 @@ export class Webhooks {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -128,8 +128,9 @@ export class Webhooks {
*
* @example
* await client.webhooks.create({
- * endpoint: "https://example.com/webhook",
- * secret: "secret"
+ * endpoint: "endpoint",
+ * organization_id: undefined,
+ * secret: "banana"
* })
*/
public async create(
@@ -147,13 +148,12 @@ export class Webhooks {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -208,15 +208,20 @@ export class Webhooks {
* Consult the [Events documentation](https://apidocs.polytomic.com/guides/events) for more information.
*
* @param {string} id
+ * @param {Polytomic.WebhooksGetRequest} request
* @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Polytomic.UnauthorizedError}
* @throws {@link Polytomic.NotFoundError}
*
* @example
- * await client.webhooks.get("248df4b7-aa70-47b8-a036-33ac447e668d")
+ * await client.webhooks.get("id")
*/
- public async get(id: string, requestOptions?: Webhooks.RequestOptions): Promise {
+ public async get(
+ id: string,
+ request: Polytomic.WebhooksGetRequest = {},
+ requestOptions?: Webhooks.RequestOptions,
+ ): Promise {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.baseUrl)) ??
@@ -228,13 +233,12 @@ export class Webhooks {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -294,9 +298,10 @@ export class Webhooks {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.webhooks.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
- * endpoint: "https://example.com/webhook",
- * secret: "secret"
+ * await client.webhooks.update("id", {
+ * endpoint: "endpoint",
+ * organization_id: undefined,
+ * secret: "banana"
* })
*/
public async update(
@@ -315,13 +320,12 @@ export class Webhooks {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -370,6 +374,7 @@ export class Webhooks {
/**
* @param {string} id
+ * @param {Polytomic.WebhooksRemoveRequest} request
* @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Polytomic.UnauthorizedError}
@@ -377,9 +382,13 @@ export class Webhooks {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.webhooks.remove("248df4b7-aa70-47b8-a036-33ac447e668d")
+ * await client.webhooks.remove("id")
*/
- public async remove(id: string, requestOptions?: Webhooks.RequestOptions): Promise {
+ public async remove(
+ id: string,
+ request: Polytomic.WebhooksRemoveRequest = {},
+ requestOptions?: Webhooks.RequestOptions,
+ ): Promise {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.baseUrl)) ??
@@ -391,13 +400,12 @@ export class Webhooks {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -445,6 +453,7 @@ export class Webhooks {
/**
* @param {string} id
+ * @param {Polytomic.WebhooksDisableRequest} request
* @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Polytomic.UnauthorizedError}
@@ -452,9 +461,13 @@ export class Webhooks {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.webhooks.disable("248df4b7-aa70-47b8-a036-33ac447e668d")
+ * await client.webhooks.disable("id")
*/
- public async disable(id: string, requestOptions?: Webhooks.RequestOptions): Promise {
+ public async disable(
+ id: string,
+ request: Polytomic.WebhooksDisableRequest = {},
+ requestOptions?: Webhooks.RequestOptions,
+ ): Promise {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.baseUrl)) ??
@@ -466,13 +479,12 @@ export class Webhooks {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -522,6 +534,7 @@ export class Webhooks {
/**
* @param {string} id
+ * @param {Polytomic.WebhooksEnableRequest} request
* @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Polytomic.UnauthorizedError}
@@ -529,9 +542,13 @@ export class Webhooks {
* @throws {@link Polytomic.InternalServerError}
*
* @example
- * await client.webhooks.enable("248df4b7-aa70-47b8-a036-33ac447e668d")
+ * await client.webhooks.enable("id")
*/
- public async enable(id: string, requestOptions?: Webhooks.RequestOptions): Promise {
+ public async enable(
+ id: string,
+ request: Polytomic.WebhooksEnableRequest = {},
+ requestOptions?: Webhooks.RequestOptions,
+ ): Promise {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.baseUrl)) ??
@@ -543,13 +560,12 @@ export class Webhooks {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Polytomic-Version":
- (await core.Supplier.get(this._options.version)) != null
+ typeof (await core.Supplier.get(this._options.version)) === "string"
? await core.Supplier.get(this._options.version)
- : undefined,
+ : toJson(await core.Supplier.get(this._options.version)),
"X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "polytomic",
- "X-Fern-SDK-Version": "1.15.2",
- "User-Agent": "polytomic/1.15.2",
+ "X-Fern-SDK-Name": "",
+ "X-Fern-SDK-Version": "0.0.135",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/webhooks/client/requests/CreateWebhooksSchema.ts b/src/api/resources/webhooks/client/requests/CreateWebhooksSchema.ts
index 157d952..6b88975 100644
--- a/src/api/resources/webhooks/client/requests/CreateWebhooksSchema.ts
+++ b/src/api/resources/webhooks/client/requests/CreateWebhooksSchema.ts
@@ -5,12 +5,13 @@
/**
* @example
* {
- * endpoint: "https://example.com/webhook",
- * secret: "secret"
+ * endpoint: "endpoint",
+ * organization_id: undefined,
+ * secret: "banana"
* }
*/
export interface CreateWebhooksSchema {
endpoint: string;
- organization_id?: string;
+ organization_id?: string | null;
secret: string;
}
diff --git a/src/api/resources/webhooks/client/requests/UpdateWebhooksSchema.ts b/src/api/resources/webhooks/client/requests/UpdateWebhooksSchema.ts
index caefab0..4ac361e 100644
--- a/src/api/resources/webhooks/client/requests/UpdateWebhooksSchema.ts
+++ b/src/api/resources/webhooks/client/requests/UpdateWebhooksSchema.ts
@@ -5,12 +5,13 @@
/**
* @example
* {
- * endpoint: "https://example.com/webhook",
- * secret: "secret"
+ * endpoint: "endpoint",
+ * organization_id: undefined,
+ * secret: "banana"
* }
*/
export interface UpdateWebhooksSchema {
endpoint: string;
- organization_id?: string;
+ organization_id?: string | null;
secret: string;
}
diff --git a/src/api/resources/webhooks/client/requests/WebhooksDisableRequest.ts b/src/api/resources/webhooks/client/requests/WebhooksDisableRequest.ts
new file mode 100644
index 0000000..df30511
--- /dev/null
+++ b/src/api/resources/webhooks/client/requests/WebhooksDisableRequest.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface WebhooksDisableRequest {}
diff --git a/src/api/resources/webhooks/client/requests/WebhooksEnableRequest.ts b/src/api/resources/webhooks/client/requests/WebhooksEnableRequest.ts
new file mode 100644
index 0000000..92c8ef5
--- /dev/null
+++ b/src/api/resources/webhooks/client/requests/WebhooksEnableRequest.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface WebhooksEnableRequest {}
diff --git a/src/api/resources/webhooks/client/requests/WebhooksGetRequest.ts b/src/api/resources/webhooks/client/requests/WebhooksGetRequest.ts
new file mode 100644
index 0000000..48b4350
--- /dev/null
+++ b/src/api/resources/webhooks/client/requests/WebhooksGetRequest.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface WebhooksGetRequest {}
diff --git a/src/api/resources/webhooks/client/requests/WebhooksRemoveRequest.ts b/src/api/resources/webhooks/client/requests/WebhooksRemoveRequest.ts
new file mode 100644
index 0000000..98b7950
--- /dev/null
+++ b/src/api/resources/webhooks/client/requests/WebhooksRemoveRequest.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface WebhooksRemoveRequest {}
diff --git a/src/api/resources/webhooks/client/requests/index.ts b/src/api/resources/webhooks/client/requests/index.ts
index a601173..bc3ba98 100644
--- a/src/api/resources/webhooks/client/requests/index.ts
+++ b/src/api/resources/webhooks/client/requests/index.ts
@@ -1,2 +1,6 @@
export { type CreateWebhooksSchema } from "./CreateWebhooksSchema";
+export { type WebhooksGetRequest } from "./WebhooksGetRequest";
export { type UpdateWebhooksSchema } from "./UpdateWebhooksSchema";
+export { type WebhooksRemoveRequest } from "./WebhooksRemoveRequest";
+export { type WebhooksDisableRequest } from "./WebhooksDisableRequest";
+export { type WebhooksEnableRequest } from "./WebhooksEnableRequest";
diff --git a/src/api/types/BackendOAuthPrompt.ts b/src/api/types/BackendOAuthPrompt.ts
index 26c636e..fa27f58 100644
--- a/src/api/types/BackendOAuthPrompt.ts
+++ b/src/api/types/BackendOAuthPrompt.ts
@@ -3,7 +3,7 @@
*/
export interface BackendOAuthPrompt {
- key?: string;
- value?: string;
+ key?: string | null;
+ value?: string | null;
when?: string;
}
diff --git a/src/api/types/BulkFilter2.ts b/src/api/types/BulkFilter2.ts
new file mode 100644
index 0000000..03932be
--- /dev/null
+++ b/src/api/types/BulkFilter2.ts
@@ -0,0 +1,12 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as Polytomic from "../index";
+
+export interface BulkFilter2 {
+ /** Schema field ID to filter on. */
+ field_id?: string;
+ function: Polytomic.FilterFunction;
+ value?: unknown;
+}
diff --git a/src/api/types/BulkMultiScheduleConfiguration.ts b/src/api/types/BulkMultiScheduleConfiguration.ts
index 222e78a..2633e19 100644
--- a/src/api/types/BulkMultiScheduleConfiguration.ts
+++ b/src/api/types/BulkMultiScheduleConfiguration.ts
@@ -5,6 +5,6 @@
import * as Polytomic from "../index";
export interface BulkMultiScheduleConfiguration {
- schedules?: Polytomic.BulkItemizedSchedule[];
- type?: string;
+ schedules: Polytomic.BulkItemizedSchedule[] | null;
+ type?: string | null;
}
diff --git a/src/api/types/BulkSchema.ts b/src/api/types/BulkSchema.ts
index a2ef276..2efbce9 100644
--- a/src/api/types/BulkSchema.ts
+++ b/src/api/types/BulkSchema.ts
@@ -5,11 +5,11 @@
import * as Polytomic from "../index";
export interface BulkSchema {
- data_cutoff_timestamp?: string;
+ data_cutoff_timestamp?: string | null;
disable_data_cutoff?: boolean;
enabled?: boolean;
fields?: Polytomic.BulkField[];
- filters?: Polytomic.BulkFilter[];
+ filters?: Polytomic.BulkFilter2[];
id?: string;
output_name?: string;
partition_key?: string;
diff --git a/src/api/types/BulkSyncDest.ts b/src/api/types/BulkSyncDest.ts
index 9729d44..2cea56b 100644
--- a/src/api/types/BulkSyncDest.ts
+++ b/src/api/types/BulkSyncDest.ts
@@ -5,6 +5,6 @@
import * as Polytomic from "../index";
export interface BulkSyncDest {
- configuration?: Record;
- modes?: Polytomic.SupportedBulkMode[];
+ configuration?: Record | null;
+ modes?: Polytomic.SupportedBulkMode[] | null;
}
diff --git a/src/api/types/BulkSyncExecution.ts b/src/api/types/BulkSyncExecution.ts
index a12f466..ff9cb46 100644
--- a/src/api/types/BulkSyncExecution.ts
+++ b/src/api/types/BulkSyncExecution.ts
@@ -5,7 +5,7 @@
import * as Polytomic from "../index";
export interface BulkSyncExecution {
- completed_at?: string;
+ completed_at?: string | null;
created_at?: string;
error_count?: number;
fetch_mode?: Polytomic.BulkFetchMode;
@@ -14,8 +14,8 @@ export interface BulkSyncExecution {
is_resync?: boolean;
is_test?: boolean;
record_count?: number;
- schemas?: Polytomic.BulkSyncSchemaExecution[];
- started_at?: string;
+ schemas?: Polytomic.BulkSyncSchemaExecution[] | null;
+ started_at?: string | null;
status?: Polytomic.BulkExecutionStatus;
status_message?: string;
type?: string;
diff --git a/src/api/types/BulkSyncExecutionStatus.ts b/src/api/types/BulkSyncExecutionStatus.ts
index ceb06cb..15b359d 100644
--- a/src/api/types/BulkSyncExecutionStatus.ts
+++ b/src/api/types/BulkSyncExecutionStatus.ts
@@ -5,8 +5,8 @@
import * as Polytomic from "../index";
export interface BulkSyncExecutionStatus {
- nextExecutionTime?: string;
- schemas?: Polytomic.BulkSyncSchemaExecutionStatus[];
+ nextExecutionTime?: string | null;
+ schemas?: Polytomic.BulkSyncSchemaExecutionStatus[] | null;
status?: Polytomic.BulkExecutionStatus;
sync_id?: string;
}
diff --git a/src/api/types/BulkSyncListEnvelope.ts b/src/api/types/BulkSyncListEnvelope.ts
index 209921a..72ccbf1 100644
--- a/src/api/types/BulkSyncListEnvelope.ts
+++ b/src/api/types/BulkSyncListEnvelope.ts
@@ -5,5 +5,5 @@
import * as Polytomic from "../index";
export interface BulkSyncListEnvelope {
- data?: Polytomic.BulkSyncResponse[];
+ data?: Polytomic.BulkSyncResponse[] | null;
}
diff --git a/src/api/types/BulkSyncResponse.ts b/src/api/types/BulkSyncResponse.ts
index 13fc220..c2d7516 100644
--- a/src/api/types/BulkSyncResponse.ts
+++ b/src/api/types/BulkSyncResponse.ts
@@ -6,32 +6,32 @@ import * as Polytomic from "../index";
export interface BulkSyncResponse {
active?: boolean;
- automatically_add_new_fields?: Polytomic.BulkDiscover;
- automatically_add_new_objects?: Polytomic.BulkDiscover;
+ automatically_add_new_fields?: Polytomic.BulkDiscover | null;
+ automatically_add_new_objects?: Polytomic.BulkDiscover | null;
/** Per-sync concurrency limit override. */
- concurrency_limit?: number;
+ concurrency_limit?: number | null;
created_at?: string;
created_by?: Polytomic.CommonOutputActor;
- data_cutoff_timestamp?: string;
+ data_cutoff_timestamp?: string | null;
/** Destination-specific bulk sync configuration. e.g. output schema name, s3 file format, etc. */
- destination_configuration?: Record;
+ destination_configuration?: Record | null;
destination_connection_id?: string;
disable_record_timestamps?: boolean;
/** DEPRECATED: Use automatically_add_new_objects/automatically_add_new_fields instead */
discover?: boolean;
id?: string;
- mode?: Polytomic.BulkSyncMode;
+ mode?: Polytomic.BulkSyncMode | null;
/** Name of the bulk sync */
name?: string;
- normalize_names?: Polytomic.BulkNormalizeNames;
+ normalize_names?: Polytomic.BulkNormalizeNames | null;
organization_id?: string;
/** List of permissions policies applied to the bulk sync. */
policies?: string[];
/** Per-sync resync concurrency limit override. */
- resync_concurrency_limit?: number;
+ resync_concurrency_limit?: number | null;
schedule?: Polytomic.BulkSchedule;
/** Source-specific bulk sync configuration. e.g. replication slot name, sync lookback, etc. */
- source_configuration?: Record;
+ source_configuration?: Record | null;
source_connection_id?: string;
updated_at?: string;
updated_by?: Polytomic.CommonOutputActor;
diff --git a/src/api/types/BulkSyncSchemaExecution.ts b/src/api/types/BulkSyncSchemaExecution.ts
index e138b47..ef991cc 100644
--- a/src/api/types/BulkSyncSchemaExecution.ts
+++ b/src/api/types/BulkSyncSchemaExecution.ts
@@ -5,13 +5,13 @@
import * as Polytomic from "../index";
export interface BulkSyncSchemaExecution {
- completed_at?: string;
+ completed_at?: string | null;
created_at?: string;
error_count?: number;
output_name?: string;
record_count?: number;
schema?: string;
- started_at?: string;
+ started_at?: string | null;
status?: Polytomic.BulkSchemaExecutionStatus;
status_message?: string;
updated_at?: string;
diff --git a/src/api/types/BulkSyncSchemaExecutionStatus.ts b/src/api/types/BulkSyncSchemaExecutionStatus.ts
index 2e21809..2270e51 100644
--- a/src/api/types/BulkSyncSchemaExecutionStatus.ts
+++ b/src/api/types/BulkSyncSchemaExecutionStatus.ts
@@ -5,13 +5,13 @@
import * as Polytomic from "../index";
export interface BulkSyncSchemaExecutionStatus {
- completed_at?: string;
+ completed_at?: string | null;
error_count?: number;
/** ID of the most recent execution for the schema. */
execution_id?: string;
record_count?: number;
schema?: string;
- started_at?: string;
+ started_at?: string | null;
status?: Polytomic.BulkSchemaExecutionStatus;
status_message?: string;
warning_count?: number;
diff --git a/src/api/types/BulkSyncSource.ts b/src/api/types/BulkSyncSource.ts
index 02c90ae..8509cad 100644
--- a/src/api/types/BulkSyncSource.ts
+++ b/src/api/types/BulkSyncSource.ts
@@ -6,5 +6,5 @@ import * as Polytomic from "../index";
export interface BulkSyncSource {
configuration?: unknown;
- schemas?: Polytomic.Schema[];
+ schemas?: Polytomic.Schema[] | null;
}
diff --git a/src/api/types/BulkSyncSourceStatus.ts b/src/api/types/BulkSyncSourceStatus.ts
index 7a29ae5..27488b5 100644
--- a/src/api/types/BulkSyncSourceStatus.ts
+++ b/src/api/types/BulkSyncSourceStatus.ts
@@ -4,6 +4,6 @@
export interface BulkSyncSourceStatus {
cache_status?: string;
- last_refresh_finished?: string;
- last_refresh_started?: string;
+ last_refresh_finished?: string | null;
+ last_refresh_started?: string | null;
}
diff --git a/src/api/types/BulkSyncStatusResponse.ts b/src/api/types/BulkSyncStatusResponse.ts
index ef264a4..353e1c8 100644
--- a/src/api/types/BulkSyncStatusResponse.ts
+++ b/src/api/types/BulkSyncStatusResponse.ts
@@ -7,5 +7,5 @@ import * as Polytomic from "../index";
export interface BulkSyncStatusResponse {
current_execution?: Polytomic.BulkSyncExecution;
last_execution?: Polytomic.BulkSyncExecution;
- next_execution_time?: string;
+ next_execution_time?: string | null;
}
diff --git a/src/api/types/ConfigurationValue2.ts b/src/api/types/ConfigurationValue2.ts
new file mode 100644
index 0000000..b5e687e
--- /dev/null
+++ b/src/api/types/ConfigurationValue2.ts
@@ -0,0 +1,8 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+export interface ConfigurationValue2 {
+ items?: unknown[];
+ type?: string;
+}
diff --git a/src/api/types/ConnectionListResponseEnvelope.ts b/src/api/types/ConnectionListResponseEnvelope.ts
index 237683d..795a08b 100644
--- a/src/api/types/ConnectionListResponseEnvelope.ts
+++ b/src/api/types/ConnectionListResponseEnvelope.ts
@@ -5,5 +5,5 @@
import * as Polytomic from "../index";
export interface ConnectionListResponseEnvelope {
- data?: Polytomic.ConnectionResponseSchema[];
+ data?: Polytomic.ConnectionResponseSchema[] | null;
}
diff --git a/src/api/types/ConnectionMeta.ts b/src/api/types/ConnectionMeta.ts
index 7f56f08..4142cf4 100644
--- a/src/api/types/ConnectionMeta.ts
+++ b/src/api/types/ConnectionMeta.ts
@@ -4,6 +4,6 @@
export interface ConnectionMeta {
has_items?: boolean;
- items?: unknown[];
- requires_one_of?: string[];
+ items?: unknown[] | null;
+ requires_one_of?: string[] | null;
}
diff --git a/src/api/types/ConnectionMetaResponse.ts b/src/api/types/ConnectionMetaResponse.ts
index 7d5baa6..9e81ca5 100644
--- a/src/api/types/ConnectionMetaResponse.ts
+++ b/src/api/types/ConnectionMetaResponse.ts
@@ -6,6 +6,6 @@ import * as Polytomic from "../index";
export interface ConnectionMetaResponse {
configuration?: Record;
- items?: Record