polytomic 0.2.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/resources/bulkSync/client/Client.d.ts +4 -19
- package/api/resources/bulkSync/client/Client.js +14 -29
- package/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +1 -7
- package/api/resources/bulkSync/client/requests/StartBulkSyncRequest.d.ts +1 -4
- package/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +1 -7
- package/api/resources/bulkSync/resources/executions/client/Client.js +2 -2
- package/api/resources/bulkSync/resources/schemas/client/Client.d.ts +1 -4
- package/api/resources/bulkSync/resources/schemas/client/Client.js +5 -8
- package/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +1 -4
- package/api/resources/connections/client/Client.d.ts +3 -10
- package/api/resources/connections/client/Client.js +12 -19
- package/api/resources/connections/client/requests/ConnectCardRequest.d.ts +1 -3
- package/api/resources/connections/client/requests/CreateConnectionRequestSchema.d.ts +1 -3
- package/api/resources/connections/client/requests/UpdateConnectionRequestSchema.d.ts +1 -4
- package/api/resources/events/client/Client.js +2 -2
- package/api/resources/identity/client/Client.js +1 -1
- package/api/resources/jobs/client/Client.js +1 -1
- package/api/resources/modelSync/client/Client.d.ts +5 -42
- package/api/resources/modelSync/client/Client.js +18 -55
- package/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +1 -21
- package/api/resources/modelSync/client/requests/StartModelSyncRequest.d.ts +1 -0
- package/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +1 -21
- package/api/resources/modelSync/resources/executions/client/Client.js +4 -4
- package/api/resources/models/client/Client.d.ts +0 -2
- package/api/resources/models/client/Client.js +5 -7
- package/api/resources/models/client/requests/CreateModelRequest.d.ts +0 -1
- package/api/resources/models/client/requests/UpdateModelRequest.d.ts +0 -1
- package/api/resources/organization/client/Client.d.ts +7 -17
- package/api/resources/organization/client/Client.js +12 -22
- package/api/resources/organization/client/requests/CreateOrganizationRequestSchema.d.ts +1 -6
- package/api/resources/organization/client/requests/UpdateOrganizationRequestSchema.d.ts +1 -6
- package/api/resources/permissions/resources/policies/client/Client.d.ts +2 -10
- package/api/resources/permissions/resources/policies/client/Client.js +7 -15
- package/api/resources/permissions/resources/policies/client/requests/CreatePolicyRequest.d.ts +1 -5
- package/api/resources/permissions/resources/policies/client/requests/UpdatePolicyRequest.d.ts +1 -5
- package/api/resources/permissions/resources/roles/client/Client.js +5 -5
- package/api/resources/schemas/client/Client.js +4 -4
- package/api/resources/users/client/Client.d.ts +8 -10
- package/api/resources/users/client/Client.js +14 -16
- package/api/resources/users/client/requests/CreateUserRequestSchema.d.ts +1 -2
- package/api/resources/users/client/requests/UpdateUserRequestSchema.d.ts +1 -2
- package/api/resources/webhooks/client/Client.d.ts +4 -4
- package/api/resources/webhooks/client/Client.js +9 -9
- package/dist/api/resources/bulkSync/client/Client.d.ts +4 -19
- package/dist/api/resources/bulkSync/client/Client.js +14 -29
- package/dist/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +1 -7
- package/dist/api/resources/bulkSync/client/requests/StartBulkSyncRequest.d.ts +1 -4
- package/dist/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +1 -7
- package/dist/api/resources/bulkSync/resources/executions/client/Client.js +2 -2
- package/dist/api/resources/bulkSync/resources/schemas/client/Client.d.ts +1 -4
- package/dist/api/resources/bulkSync/resources/schemas/client/Client.js +5 -8
- package/dist/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +1 -4
- package/dist/api/resources/connections/client/Client.d.ts +3 -10
- package/dist/api/resources/connections/client/Client.js +12 -19
- package/dist/api/resources/connections/client/requests/ConnectCardRequest.d.ts +1 -3
- package/dist/api/resources/connections/client/requests/CreateConnectionRequestSchema.d.ts +1 -3
- package/dist/api/resources/connections/client/requests/UpdateConnectionRequestSchema.d.ts +1 -4
- package/dist/api/resources/events/client/Client.js +2 -2
- package/dist/api/resources/identity/client/Client.js +1 -1
- package/dist/api/resources/jobs/client/Client.js +1 -1
- package/dist/api/resources/modelSync/client/Client.d.ts +5 -42
- package/dist/api/resources/modelSync/client/Client.js +18 -55
- package/dist/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +1 -21
- package/dist/api/resources/modelSync/client/requests/StartModelSyncRequest.d.ts +1 -0
- package/dist/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +1 -21
- package/dist/api/resources/modelSync/resources/executions/client/Client.js +4 -4
- package/dist/api/resources/models/client/Client.d.ts +0 -2
- package/dist/api/resources/models/client/Client.js +5 -7
- package/dist/api/resources/models/client/requests/CreateModelRequest.d.ts +0 -1
- package/dist/api/resources/models/client/requests/UpdateModelRequest.d.ts +0 -1
- package/dist/api/resources/organization/client/Client.d.ts +7 -17
- package/dist/api/resources/organization/client/Client.js +12 -22
- package/dist/api/resources/organization/client/requests/CreateOrganizationRequestSchema.d.ts +1 -6
- package/dist/api/resources/organization/client/requests/UpdateOrganizationRequestSchema.d.ts +1 -6
- package/dist/api/resources/permissions/resources/policies/client/Client.d.ts +2 -10
- package/dist/api/resources/permissions/resources/policies/client/Client.js +7 -15
- package/dist/api/resources/permissions/resources/policies/client/requests/CreatePolicyRequest.d.ts +1 -5
- package/dist/api/resources/permissions/resources/policies/client/requests/UpdatePolicyRequest.d.ts +1 -5
- package/dist/api/resources/permissions/resources/roles/client/Client.js +5 -5
- package/dist/api/resources/schemas/client/Client.js +4 -4
- package/dist/api/resources/users/client/Client.d.ts +8 -10
- package/dist/api/resources/users/client/Client.js +14 -16
- package/dist/api/resources/users/client/requests/CreateUserRequestSchema.d.ts +1 -2
- package/dist/api/resources/users/client/requests/UpdateUserRequestSchema.d.ts +1 -2
- package/dist/api/resources/webhooks/client/Client.d.ts +4 -4
- package/dist/api/resources/webhooks/client/Client.js +9 -9
- package/package.json +2 -2
|
@@ -75,7 +75,7 @@ class ModelSync {
|
|
|
75
75
|
"X-Polytomic-Version": "2024-02-08",
|
|
76
76
|
"X-Fern-Language": "JavaScript",
|
|
77
77
|
"X-Fern-SDK-Name": "polytomic",
|
|
78
|
-
"X-Fern-SDK-Version": "0.
|
|
78
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
79
79
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
80
80
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
81
81
|
},
|
|
@@ -142,7 +142,7 @@ class ModelSync {
|
|
|
142
142
|
"X-Polytomic-Version": "2024-02-08",
|
|
143
143
|
"X-Fern-Language": "JavaScript",
|
|
144
144
|
"X-Fern-SDK-Name": "polytomic",
|
|
145
|
-
"X-Fern-SDK-Version": "0.
|
|
145
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
146
146
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
147
147
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
148
148
|
},
|
|
@@ -216,7 +216,7 @@ class ModelSync {
|
|
|
216
216
|
"X-Polytomic-Version": "2024-02-08",
|
|
217
217
|
"X-Fern-Language": "JavaScript",
|
|
218
218
|
"X-Fern-SDK-Name": "polytomic",
|
|
219
|
-
"X-Fern-SDK-Version": "0.
|
|
219
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
220
220
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
221
221
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
222
222
|
},
|
|
@@ -291,7 +291,7 @@ class ModelSync {
|
|
|
291
291
|
"X-Polytomic-Version": "2024-02-08",
|
|
292
292
|
"X-Fern-Language": "JavaScript",
|
|
293
293
|
"X-Fern-SDK-Name": "polytomic",
|
|
294
|
-
"X-Fern-SDK-Version": "0.
|
|
294
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
295
295
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
296
296
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
297
297
|
},
|
|
@@ -354,7 +354,7 @@ class ModelSync {
|
|
|
354
354
|
"X-Polytomic-Version": "2024-02-08",
|
|
355
355
|
"X-Fern-Language": "JavaScript",
|
|
356
356
|
"X-Fern-SDK-Name": "polytomic",
|
|
357
|
-
"X-Fern-SDK-Version": "0.
|
|
357
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
358
358
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
359
359
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
360
360
|
},
|
|
@@ -404,29 +404,9 @@ class ModelSync {
|
|
|
404
404
|
*
|
|
405
405
|
* @example
|
|
406
406
|
* await polytomic.modelSync.create({
|
|
407
|
-
* fields: [{
|
|
408
|
-
* source: {
|
|
409
|
-
* field: "id",
|
|
410
|
-
* model_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
411
|
-
* },
|
|
412
|
-
* target: "name"
|
|
413
|
-
* }],
|
|
414
|
-
* filter_logic: "A and B or C",
|
|
415
|
-
* identity: {
|
|
416
|
-
* function: "Equality",
|
|
417
|
-
* source: {
|
|
418
|
-
* field: "id",
|
|
419
|
-
* model_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
420
|
-
* },
|
|
421
|
-
* target: "name"
|
|
422
|
-
* },
|
|
423
407
|
* mode: "create",
|
|
424
408
|
* name: "Users Sync",
|
|
425
|
-
* schedule: {
|
|
426
|
-
* connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
427
|
-
* frequency: "daily"
|
|
428
|
-
* },
|
|
429
|
-
* sync_all_records: false,
|
|
409
|
+
* schedule: {},
|
|
430
410
|
* target: {
|
|
431
411
|
* connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
432
412
|
* object: "Users"
|
|
@@ -444,7 +424,7 @@ class ModelSync {
|
|
|
444
424
|
"X-Polytomic-Version": "2024-02-08",
|
|
445
425
|
"X-Fern-Language": "JavaScript",
|
|
446
426
|
"X-Fern-SDK-Name": "polytomic",
|
|
447
|
-
"X-Fern-SDK-Version": "0.
|
|
427
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
448
428
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
449
429
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
450
430
|
},
|
|
@@ -508,7 +488,7 @@ class ModelSync {
|
|
|
508
488
|
"X-Polytomic-Version": "2024-02-08",
|
|
509
489
|
"X-Fern-Language": "JavaScript",
|
|
510
490
|
"X-Fern-SDK-Name": "polytomic",
|
|
511
|
-
"X-Fern-SDK-Version": "0.
|
|
491
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
512
492
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
513
493
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
514
494
|
},
|
|
@@ -566,7 +546,7 @@ class ModelSync {
|
|
|
566
546
|
"X-Polytomic-Version": "2024-02-08",
|
|
567
547
|
"X-Fern-Language": "JavaScript",
|
|
568
548
|
"X-Fern-SDK-Name": "polytomic",
|
|
569
|
-
"X-Fern-SDK-Version": "0.
|
|
549
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
570
550
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
571
551
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
572
552
|
},
|
|
@@ -617,29 +597,9 @@ class ModelSync {
|
|
|
617
597
|
*
|
|
618
598
|
* @example
|
|
619
599
|
* await polytomic.modelSync.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
620
|
-
* fields: [{
|
|
621
|
-
* source: {
|
|
622
|
-
* field: "id",
|
|
623
|
-
* model_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
624
|
-
* },
|
|
625
|
-
* target: "name"
|
|
626
|
-
* }],
|
|
627
|
-
* filter_logic: "A and B or C",
|
|
628
|
-
* identity: {
|
|
629
|
-
* function: "Equality",
|
|
630
|
-
* source: {
|
|
631
|
-
* field: "id",
|
|
632
|
-
* model_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
633
|
-
* },
|
|
634
|
-
* target: "name"
|
|
635
|
-
* },
|
|
636
600
|
* mode: "create",
|
|
637
601
|
* name: "Users Sync",
|
|
638
|
-
* schedule: {
|
|
639
|
-
* connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
640
|
-
* frequency: "daily"
|
|
641
|
-
* },
|
|
642
|
-
* sync_all_records: false,
|
|
602
|
+
* schedule: {},
|
|
643
603
|
* target: {
|
|
644
604
|
* connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
645
605
|
* object: "Users"
|
|
@@ -657,7 +617,7 @@ class ModelSync {
|
|
|
657
617
|
"X-Polytomic-Version": "2024-02-08",
|
|
658
618
|
"X-Fern-Language": "JavaScript",
|
|
659
619
|
"X-Fern-SDK-Name": "polytomic",
|
|
660
|
-
"X-Fern-SDK-Version": "0.
|
|
620
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
661
621
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
662
622
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
663
623
|
},
|
|
@@ -725,7 +685,7 @@ class ModelSync {
|
|
|
725
685
|
"X-Polytomic-Version": "2024-02-08",
|
|
726
686
|
"X-Fern-Language": "JavaScript",
|
|
727
687
|
"X-Fern-SDK-Name": "polytomic",
|
|
728
|
-
"X-Fern-SDK-Version": "0.
|
|
688
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
729
689
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
730
690
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
731
691
|
},
|
|
@@ -790,7 +750,7 @@ class ModelSync {
|
|
|
790
750
|
"X-Polytomic-Version": "2024-02-08",
|
|
791
751
|
"X-Fern-Language": "JavaScript",
|
|
792
752
|
"X-Fern-SDK-Name": "polytomic",
|
|
793
|
-
"X-Fern-SDK-Version": "0.
|
|
753
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
794
754
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
795
755
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
796
756
|
},
|
|
@@ -835,6 +795,9 @@ class ModelSync {
|
|
|
835
795
|
});
|
|
836
796
|
}
|
|
837
797
|
/**
|
|
798
|
+
* > 🚧 Force full resync
|
|
799
|
+
* >
|
|
800
|
+
* > Use caution when setting the `resync` parameter to `true`. This will force a full resync of the data from the source system. This can be a time-consuming operation and may impact the performance of the source system. It is recommended to only use this option when necessary.
|
|
838
801
|
* @throws {@link Polytomic.BadRequestError}
|
|
839
802
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
840
803
|
* @throws {@link Polytomic.ForbiddenError}
|
|
@@ -855,7 +818,7 @@ class ModelSync {
|
|
|
855
818
|
"X-Polytomic-Version": "2024-02-08",
|
|
856
819
|
"X-Fern-Language": "JavaScript",
|
|
857
820
|
"X-Fern-SDK-Name": "polytomic",
|
|
858
|
-
"X-Fern-SDK-Version": "0.
|
|
821
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
859
822
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
860
823
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
861
824
|
},
|
|
@@ -920,7 +883,7 @@ class ModelSync {
|
|
|
920
883
|
"X-Polytomic-Version": "2024-02-08",
|
|
921
884
|
"X-Fern-Language": "JavaScript",
|
|
922
885
|
"X-Fern-SDK-Name": "polytomic",
|
|
923
|
-
"X-Fern-SDK-Version": "0.
|
|
886
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
924
887
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
925
888
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
926
889
|
},
|
|
@@ -5,29 +5,9 @@ import * as Polytomic from "../../../..";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
* fields: [{
|
|
9
|
-
* source: {
|
|
10
|
-
* field: "id",
|
|
11
|
-
* model_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
12
|
-
* },
|
|
13
|
-
* target: "name"
|
|
14
|
-
* }],
|
|
15
|
-
* filter_logic: "A and B or C",
|
|
16
|
-
* identity: {
|
|
17
|
-
* function: "Equality",
|
|
18
|
-
* source: {
|
|
19
|
-
* field: "id",
|
|
20
|
-
* model_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
21
|
-
* },
|
|
22
|
-
* target: "name"
|
|
23
|
-
* },
|
|
24
8
|
* mode: "create",
|
|
25
9
|
* name: "Users Sync",
|
|
26
|
-
* schedule: {
|
|
27
|
-
* connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
28
|
-
* frequency: "daily"
|
|
29
|
-
* },
|
|
30
|
-
* sync_all_records: false,
|
|
10
|
+
* schedule: {},
|
|
31
11
|
* target: {
|
|
32
12
|
* connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
33
13
|
* object: "Users"
|
|
@@ -5,29 +5,9 @@ import * as Polytomic from "../../../..";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
* fields: [{
|
|
9
|
-
* source: {
|
|
10
|
-
* field: "id",
|
|
11
|
-
* model_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
12
|
-
* },
|
|
13
|
-
* target: "name"
|
|
14
|
-
* }],
|
|
15
|
-
* filter_logic: "A and B or C",
|
|
16
|
-
* identity: {
|
|
17
|
-
* function: "Equality",
|
|
18
|
-
* source: {
|
|
19
|
-
* field: "id",
|
|
20
|
-
* model_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
21
|
-
* },
|
|
22
|
-
* target: "name"
|
|
23
|
-
* },
|
|
24
8
|
* mode: "create",
|
|
25
9
|
* name: "Users Sync",
|
|
26
|
-
* schedule: {
|
|
27
|
-
* connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
28
|
-
* frequency: "daily"
|
|
29
|
-
* },
|
|
30
|
-
* sync_all_records: false,
|
|
10
|
+
* schedule: {},
|
|
31
11
|
* target: {
|
|
32
12
|
* connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
33
13
|
* object: "Users"
|
|
@@ -66,7 +66,7 @@ class Executions {
|
|
|
66
66
|
"X-Polytomic-Version": "2024-02-08",
|
|
67
67
|
"X-Fern-Language": "JavaScript",
|
|
68
68
|
"X-Fern-SDK-Name": "polytomic",
|
|
69
|
-
"X-Fern-SDK-Version": "0.
|
|
69
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
70
70
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
71
71
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
72
72
|
},
|
|
@@ -124,7 +124,7 @@ class Executions {
|
|
|
124
124
|
"X-Polytomic-Version": "2024-02-08",
|
|
125
125
|
"X-Fern-Language": "JavaScript",
|
|
126
126
|
"X-Fern-SDK-Name": "polytomic",
|
|
127
|
-
"X-Fern-SDK-Version": "0.
|
|
127
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
128
128
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
129
129
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
130
130
|
},
|
|
@@ -185,7 +185,7 @@ class Executions {
|
|
|
185
185
|
"X-Polytomic-Version": "2024-02-08",
|
|
186
186
|
"X-Fern-Language": "JavaScript",
|
|
187
187
|
"X-Fern-SDK-Name": "polytomic",
|
|
188
|
-
"X-Fern-SDK-Version": "0.
|
|
188
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
189
189
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
190
190
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
191
191
|
},
|
|
@@ -248,7 +248,7 @@ class Executions {
|
|
|
248
248
|
"X-Polytomic-Version": "2024-02-08",
|
|
249
249
|
"X-Fern-Language": "JavaScript",
|
|
250
250
|
"X-Fern-SDK-Name": "polytomic",
|
|
251
|
-
"X-Fern-SDK-Version": "0.
|
|
251
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
252
252
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
253
253
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
254
254
|
},
|
|
@@ -34,7 +34,6 @@ export declare class Models {
|
|
|
34
34
|
* @example
|
|
35
35
|
* await polytomic.models.create({
|
|
36
36
|
* connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
37
|
-
* identifier: "id",
|
|
38
37
|
* name: "Users"
|
|
39
38
|
* })
|
|
40
39
|
*/
|
|
@@ -58,7 +57,6 @@ export declare class Models {
|
|
|
58
57
|
* await polytomic.models.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
59
58
|
* async: false,
|
|
60
59
|
* connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
61
|
-
* identifier: "id",
|
|
62
60
|
* name: "Users"
|
|
63
61
|
* })
|
|
64
62
|
*/
|
|
@@ -77,7 +77,7 @@ class Models {
|
|
|
77
77
|
"X-Polytomic-Version": "2024-02-08",
|
|
78
78
|
"X-Fern-Language": "JavaScript",
|
|
79
79
|
"X-Fern-SDK-Name": "polytomic",
|
|
80
|
-
"X-Fern-SDK-Version": "0.
|
|
80
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
81
81
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
82
82
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
83
83
|
},
|
|
@@ -125,7 +125,6 @@ class Models {
|
|
|
125
125
|
* @example
|
|
126
126
|
* await polytomic.models.create({
|
|
127
127
|
* connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
128
|
-
* identifier: "id",
|
|
129
128
|
* name: "Users"
|
|
130
129
|
* })
|
|
131
130
|
*/
|
|
@@ -145,7 +144,7 @@ class Models {
|
|
|
145
144
|
"X-Polytomic-Version": "2024-02-08",
|
|
146
145
|
"X-Fern-Language": "JavaScript",
|
|
147
146
|
"X-Fern-SDK-Name": "polytomic",
|
|
148
|
-
"X-Fern-SDK-Version": "0.
|
|
147
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
149
148
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
150
149
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
151
150
|
},
|
|
@@ -209,7 +208,7 @@ class Models {
|
|
|
209
208
|
"X-Polytomic-Version": "2024-02-08",
|
|
210
209
|
"X-Fern-Language": "JavaScript",
|
|
211
210
|
"X-Fern-SDK-Name": "polytomic",
|
|
212
|
-
"X-Fern-SDK-Version": "0.
|
|
211
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
213
212
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
214
213
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
215
214
|
},
|
|
@@ -260,7 +259,6 @@ class Models {
|
|
|
260
259
|
* await polytomic.models.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
261
260
|
* async: false,
|
|
262
261
|
* connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
263
|
-
* identifier: "id",
|
|
264
262
|
* name: "Users"
|
|
265
263
|
* })
|
|
266
264
|
*/
|
|
@@ -280,7 +278,7 @@ class Models {
|
|
|
280
278
|
"X-Polytomic-Version": "2024-02-08",
|
|
281
279
|
"X-Fern-Language": "JavaScript",
|
|
282
280
|
"X-Fern-SDK-Name": "polytomic",
|
|
283
|
-
"X-Fern-SDK-Version": "0.
|
|
281
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
284
282
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
285
283
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
286
284
|
},
|
|
@@ -345,7 +343,7 @@ class Models {
|
|
|
345
343
|
"X-Polytomic-Version": "2024-02-08",
|
|
346
344
|
"X-Fern-Language": "JavaScript",
|
|
347
345
|
"X-Fern-SDK-Name": "polytomic",
|
|
348
|
-
"X-Fern-SDK-Version": "0.
|
|
346
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
349
347
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
350
348
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
351
349
|
},
|
|
@@ -20,7 +20,7 @@ export declare class Organization {
|
|
|
20
20
|
/**
|
|
21
21
|
* > 🚧 Requires partner key
|
|
22
22
|
* >
|
|
23
|
-
* > Organization endpoints are only accessible using [partner keys](https://
|
|
23
|
+
* > Organization endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/getting-started/obtaining-api-keys#partner-keys)
|
|
24
24
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
25
25
|
* @throws {@link Polytomic.InternalServerError}
|
|
26
26
|
*
|
|
@@ -31,26 +31,21 @@ export declare class Organization {
|
|
|
31
31
|
/**
|
|
32
32
|
* > 🚧 Requires partner key
|
|
33
33
|
* >
|
|
34
|
-
* > Organization endpoints are only accessible using [partner keys](https://
|
|
34
|
+
* > Organization endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/getting-started/obtaining-api-keys#partner-keys)
|
|
35
35
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
36
36
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
37
37
|
* @throws {@link Polytomic.InternalServerError}
|
|
38
38
|
*
|
|
39
39
|
* @example
|
|
40
40
|
* await polytomic.organization.create({
|
|
41
|
-
*
|
|
42
|
-
* client_secret: "client_secret",
|
|
43
|
-
* issuer: "https://example.com",
|
|
44
|
-
* name: "My Organization",
|
|
45
|
-
* sso_domain: "example.com",
|
|
46
|
-
* sso_org_id: "123456"
|
|
41
|
+
* name: "My Organization"
|
|
47
42
|
* })
|
|
48
43
|
*/
|
|
49
44
|
create(request: Polytomic.CreateOrganizationRequestSchema, requestOptions?: Organization.RequestOptions): Promise<Polytomic.OrganizationEnvelope>;
|
|
50
45
|
/**
|
|
51
46
|
* > 🚧 Requires partner key
|
|
52
47
|
* >
|
|
53
|
-
* > Organization endpoints are only accessible using [partner keys](https://
|
|
48
|
+
* > Organization endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/getting-started/obtaining-api-keys#partner-keys)
|
|
54
49
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
55
50
|
* @throws {@link Polytomic.NotFoundError}
|
|
56
51
|
*
|
|
@@ -61,26 +56,21 @@ export declare class Organization {
|
|
|
61
56
|
/**
|
|
62
57
|
* > 🚧 Requires partner key
|
|
63
58
|
* >
|
|
64
|
-
* > Organization endpoints are only accessible using [partner keys](https://
|
|
59
|
+
* > Organization endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/getting-started/obtaining-api-keys#partner-keys)
|
|
65
60
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
66
61
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
67
62
|
* @throws {@link Polytomic.InternalServerError}
|
|
68
63
|
*
|
|
69
64
|
* @example
|
|
70
65
|
* await polytomic.organization.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
71
|
-
*
|
|
72
|
-
* client_secret: "client_secret",
|
|
73
|
-
* issuer: "https://example.com",
|
|
74
|
-
* name: "My Organization",
|
|
75
|
-
* sso_domain: "example.com",
|
|
76
|
-
* sso_org_id: "123456"
|
|
66
|
+
* name: "My Organization"
|
|
77
67
|
* })
|
|
78
68
|
*/
|
|
79
69
|
update(id: string, request: Polytomic.UpdateOrganizationRequestSchema, requestOptions?: Organization.RequestOptions): Promise<Polytomic.OrganizationEnvelope>;
|
|
80
70
|
/**
|
|
81
71
|
* > 🚧 Requires partner key
|
|
82
72
|
* >
|
|
83
|
-
* > Organization endpoints are only accessible using [partner keys](https://
|
|
73
|
+
* > Organization endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/getting-started/obtaining-api-keys#partner-keys)
|
|
84
74
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
85
75
|
* @throws {@link Polytomic.NotFoundError}
|
|
86
76
|
* @throws {@link Polytomic.InternalServerError}
|
|
@@ -51,7 +51,7 @@ class Organization {
|
|
|
51
51
|
/**
|
|
52
52
|
* > 🚧 Requires partner key
|
|
53
53
|
* >
|
|
54
|
-
* > Organization endpoints are only accessible using [partner keys](https://
|
|
54
|
+
* > Organization endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/getting-started/obtaining-api-keys#partner-keys)
|
|
55
55
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
56
56
|
* @throws {@link Polytomic.InternalServerError}
|
|
57
57
|
*
|
|
@@ -69,7 +69,7 @@ class Organization {
|
|
|
69
69
|
"X-Polytomic-Version": "2024-02-08",
|
|
70
70
|
"X-Fern-Language": "JavaScript",
|
|
71
71
|
"X-Fern-SDK-Name": "polytomic",
|
|
72
|
-
"X-Fern-SDK-Version": "0.
|
|
72
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
73
73
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
74
74
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
75
75
|
},
|
|
@@ -111,19 +111,14 @@ class Organization {
|
|
|
111
111
|
/**
|
|
112
112
|
* > 🚧 Requires partner key
|
|
113
113
|
* >
|
|
114
|
-
* > Organization endpoints are only accessible using [partner keys](https://
|
|
114
|
+
* > Organization endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/getting-started/obtaining-api-keys#partner-keys)
|
|
115
115
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
116
116
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
117
117
|
* @throws {@link Polytomic.InternalServerError}
|
|
118
118
|
*
|
|
119
119
|
* @example
|
|
120
120
|
* await polytomic.organization.create({
|
|
121
|
-
*
|
|
122
|
-
* client_secret: "client_secret",
|
|
123
|
-
* issuer: "https://example.com",
|
|
124
|
-
* name: "My Organization",
|
|
125
|
-
* sso_domain: "example.com",
|
|
126
|
-
* sso_org_id: "123456"
|
|
121
|
+
* name: "My Organization"
|
|
127
122
|
* })
|
|
128
123
|
*/
|
|
129
124
|
create(request, requestOptions) {
|
|
@@ -137,7 +132,7 @@ class Organization {
|
|
|
137
132
|
"X-Polytomic-Version": "2024-02-08",
|
|
138
133
|
"X-Fern-Language": "JavaScript",
|
|
139
134
|
"X-Fern-SDK-Name": "polytomic",
|
|
140
|
-
"X-Fern-SDK-Version": "0.
|
|
135
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
141
136
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
142
137
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
143
138
|
},
|
|
@@ -182,7 +177,7 @@ class Organization {
|
|
|
182
177
|
/**
|
|
183
178
|
* > 🚧 Requires partner key
|
|
184
179
|
* >
|
|
185
|
-
* > Organization endpoints are only accessible using [partner keys](https://
|
|
180
|
+
* > Organization endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/getting-started/obtaining-api-keys#partner-keys)
|
|
186
181
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
187
182
|
* @throws {@link Polytomic.NotFoundError}
|
|
188
183
|
*
|
|
@@ -200,7 +195,7 @@ class Organization {
|
|
|
200
195
|
"X-Polytomic-Version": "2024-02-08",
|
|
201
196
|
"X-Fern-Language": "JavaScript",
|
|
202
197
|
"X-Fern-SDK-Name": "polytomic",
|
|
203
|
-
"X-Fern-SDK-Version": "0.
|
|
198
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
204
199
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
205
200
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
206
201
|
},
|
|
@@ -242,19 +237,14 @@ class Organization {
|
|
|
242
237
|
/**
|
|
243
238
|
* > 🚧 Requires partner key
|
|
244
239
|
* >
|
|
245
|
-
* > Organization endpoints are only accessible using [partner keys](https://
|
|
240
|
+
* > Organization endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/getting-started/obtaining-api-keys#partner-keys)
|
|
246
241
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
247
242
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
248
243
|
* @throws {@link Polytomic.InternalServerError}
|
|
249
244
|
*
|
|
250
245
|
* @example
|
|
251
246
|
* await polytomic.organization.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
252
|
-
*
|
|
253
|
-
* client_secret: "client_secret",
|
|
254
|
-
* issuer: "https://example.com",
|
|
255
|
-
* name: "My Organization",
|
|
256
|
-
* sso_domain: "example.com",
|
|
257
|
-
* sso_org_id: "123456"
|
|
247
|
+
* name: "My Organization"
|
|
258
248
|
* })
|
|
259
249
|
*/
|
|
260
250
|
update(id, request, requestOptions) {
|
|
@@ -268,7 +258,7 @@ class Organization {
|
|
|
268
258
|
"X-Polytomic-Version": "2024-02-08",
|
|
269
259
|
"X-Fern-Language": "JavaScript",
|
|
270
260
|
"X-Fern-SDK-Name": "polytomic",
|
|
271
|
-
"X-Fern-SDK-Version": "0.
|
|
261
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
272
262
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
273
263
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
274
264
|
},
|
|
@@ -313,7 +303,7 @@ class Organization {
|
|
|
313
303
|
/**
|
|
314
304
|
* > 🚧 Requires partner key
|
|
315
305
|
* >
|
|
316
|
-
* > Organization endpoints are only accessible using [partner keys](https://
|
|
306
|
+
* > Organization endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/getting-started/obtaining-api-keys#partner-keys)
|
|
317
307
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
318
308
|
* @throws {@link Polytomic.NotFoundError}
|
|
319
309
|
* @throws {@link Polytomic.InternalServerError}
|
|
@@ -332,7 +322,7 @@ class Organization {
|
|
|
332
322
|
"X-Polytomic-Version": "2024-02-08",
|
|
333
323
|
"X-Fern-Language": "JavaScript",
|
|
334
324
|
"X-Fern-SDK-Name": "polytomic",
|
|
335
|
-
"X-Fern-SDK-Version": "0.
|
|
325
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
336
326
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
337
327
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
338
328
|
},
|
package/dist/api/resources/organization/client/requests/CreateOrganizationRequestSchema.d.ts
CHANGED
|
@@ -4,12 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* @example
|
|
6
6
|
* {
|
|
7
|
-
*
|
|
8
|
-
* client_secret: "client_secret",
|
|
9
|
-
* issuer: "https://example.com",
|
|
10
|
-
* name: "My Organization",
|
|
11
|
-
* sso_domain: "example.com",
|
|
12
|
-
* sso_org_id: "123456"
|
|
7
|
+
* name: "My Organization"
|
|
13
8
|
* }
|
|
14
9
|
*/
|
|
15
10
|
export interface CreateOrganizationRequestSchema {
|
package/dist/api/resources/organization/client/requests/UpdateOrganizationRequestSchema.d.ts
CHANGED
|
@@ -4,12 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* @example
|
|
6
6
|
* {
|
|
7
|
-
*
|
|
8
|
-
* client_secret: "client_secret",
|
|
9
|
-
* issuer: "https://example.com",
|
|
10
|
-
* name: "My Organization",
|
|
11
|
-
* sso_domain: "example.com",
|
|
12
|
-
* sso_org_id: "123456"
|
|
7
|
+
* name: "My Organization"
|
|
13
8
|
* }
|
|
14
9
|
*/
|
|
15
10
|
export interface UpdateOrganizationRequestSchema {
|
|
@@ -34,11 +34,7 @@ export declare class Policies {
|
|
|
34
34
|
*
|
|
35
35
|
* @example
|
|
36
36
|
* await polytomic.permissions.policies.create({
|
|
37
|
-
* name: "Custom"
|
|
38
|
-
* policy_actions: [{
|
|
39
|
-
* action: "read",
|
|
40
|
-
* role_ids: ["248df4b7-aa70-47b8-a036-33ac447e668d"]
|
|
41
|
-
* }]
|
|
37
|
+
* name: "Custom"
|
|
42
38
|
* })
|
|
43
39
|
*/
|
|
44
40
|
create(request: Polytomic.permissions.CreatePolicyRequest, requestOptions?: Policies.RequestOptions): Promise<Polytomic.PolicyResponseEnvelope>;
|
|
@@ -60,11 +56,7 @@ export declare class Policies {
|
|
|
60
56
|
*
|
|
61
57
|
* @example
|
|
62
58
|
* await polytomic.permissions.policies.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
63
|
-
* name: "Custom"
|
|
64
|
-
* policy_actions: [{
|
|
65
|
-
* action: "read",
|
|
66
|
-
* role_ids: ["248df4b7-aa70-47b8-a036-33ac447e668d"]
|
|
67
|
-
* }]
|
|
59
|
+
* name: "Custom"
|
|
68
60
|
* })
|
|
69
61
|
*/
|
|
70
62
|
update(id: string, request: Polytomic.permissions.UpdatePolicyRequest, requestOptions?: Policies.RequestOptions): Promise<Polytomic.PolicyResponseEnvelope>;
|