@unified-api/typescript-sdk 2.83.39 → 2.83.40
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/dist/commonjs/funcs/storageListStorageFiles.js +1 -0
- package/dist/commonjs/funcs/storageListStorageFiles.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/sdk/models/operations/createaccountingcreditmemo.d.ts +1 -1
- package/dist/commonjs/sdk/models/operations/createaccountingcreditmemo.js +1 -1
- package/dist/commonjs/sdk/models/operations/createaccountingcreditmemo.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/createstoragefile.d.ts +1 -0
- package/dist/commonjs/sdk/models/operations/createstoragefile.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/createstoragefile.js +1 -0
- package/dist/commonjs/sdk/models/operations/createstoragefile.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/getaccountingcreditmemo.d.ts +1 -1
- package/dist/commonjs/sdk/models/operations/getaccountingcreditmemo.js +1 -1
- package/dist/commonjs/sdk/models/operations/getaccountingcreditmemo.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/getstoragefile.d.ts +1 -0
- package/dist/commonjs/sdk/models/operations/getstoragefile.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/getstoragefile.js +1 -0
- package/dist/commonjs/sdk/models/operations/getstoragefile.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/listaccountingcreditmemoes.d.ts +1 -1
- package/dist/commonjs/sdk/models/operations/listaccountingcreditmemoes.js +1 -1
- package/dist/commonjs/sdk/models/operations/listaccountingcreditmemoes.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/liststoragefiles.d.ts +6 -0
- package/dist/commonjs/sdk/models/operations/liststoragefiles.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/liststoragefiles.js +2 -0
- package/dist/commonjs/sdk/models/operations/liststoragefiles.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/patchaccountingcreditmemo.d.ts +1 -1
- package/dist/commonjs/sdk/models/operations/patchaccountingcreditmemo.js +1 -1
- package/dist/commonjs/sdk/models/operations/patchaccountingcreditmemo.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/patchstoragefile.d.ts +1 -0
- package/dist/commonjs/sdk/models/operations/patchstoragefile.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/patchstoragefile.js +1 -0
- package/dist/commonjs/sdk/models/operations/patchstoragefile.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/updateaccountingcreditmemo.d.ts +1 -1
- package/dist/commonjs/sdk/models/operations/updateaccountingcreditmemo.js +1 -1
- package/dist/commonjs/sdk/models/operations/updateaccountingcreditmemo.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/updatestoragefile.d.ts +1 -0
- package/dist/commonjs/sdk/models/operations/updatestoragefile.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/updatestoragefile.js +1 -0
- package/dist/commonjs/sdk/models/operations/updatestoragefile.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/index.d.ts +1 -0
- package/dist/commonjs/sdk/models/shared/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/index.js +1 -0
- package/dist/commonjs/sdk/models/shared/index.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/integrationsupport.d.ts +18 -0
- package/dist/commonjs/sdk/models/shared/integrationsupport.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/integrationsupport.js +24 -6
- package/dist/commonjs/sdk/models/shared/integrationsupport.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/storagefile.d.ts +3 -0
- package/dist/commonjs/sdk/models/shared/storagefile.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/storagefile.js +3 -0
- package/dist/commonjs/sdk/models/shared/storagefile.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/storagereference.d.ts +21 -0
- package/dist/commonjs/sdk/models/shared/storagereference.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/storagereference.js +62 -0
- package/dist/commonjs/sdk/models/shared/storagereference.js.map +1 -0
- package/dist/esm/funcs/storageListStorageFiles.js +1 -0
- package/dist/esm/funcs/storageListStorageFiles.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/sdk/models/operations/createaccountingcreditmemo.d.ts +1 -1
- package/dist/esm/sdk/models/operations/createaccountingcreditmemo.js +1 -1
- package/dist/esm/sdk/models/operations/createaccountingcreditmemo.js.map +1 -1
- package/dist/esm/sdk/models/operations/createstoragefile.d.ts +1 -0
- package/dist/esm/sdk/models/operations/createstoragefile.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/createstoragefile.js +1 -0
- package/dist/esm/sdk/models/operations/createstoragefile.js.map +1 -1
- package/dist/esm/sdk/models/operations/getaccountingcreditmemo.d.ts +1 -1
- package/dist/esm/sdk/models/operations/getaccountingcreditmemo.js +1 -1
- package/dist/esm/sdk/models/operations/getaccountingcreditmemo.js.map +1 -1
- package/dist/esm/sdk/models/operations/getstoragefile.d.ts +1 -0
- package/dist/esm/sdk/models/operations/getstoragefile.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/getstoragefile.js +1 -0
- package/dist/esm/sdk/models/operations/getstoragefile.js.map +1 -1
- package/dist/esm/sdk/models/operations/listaccountingcreditmemoes.d.ts +1 -1
- package/dist/esm/sdk/models/operations/listaccountingcreditmemoes.js +1 -1
- package/dist/esm/sdk/models/operations/listaccountingcreditmemoes.js.map +1 -1
- package/dist/esm/sdk/models/operations/liststoragefiles.d.ts +6 -0
- package/dist/esm/sdk/models/operations/liststoragefiles.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/liststoragefiles.js +2 -0
- package/dist/esm/sdk/models/operations/liststoragefiles.js.map +1 -1
- package/dist/esm/sdk/models/operations/patchaccountingcreditmemo.d.ts +1 -1
- package/dist/esm/sdk/models/operations/patchaccountingcreditmemo.js +1 -1
- package/dist/esm/sdk/models/operations/patchaccountingcreditmemo.js.map +1 -1
- package/dist/esm/sdk/models/operations/patchstoragefile.d.ts +1 -0
- package/dist/esm/sdk/models/operations/patchstoragefile.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/patchstoragefile.js +1 -0
- package/dist/esm/sdk/models/operations/patchstoragefile.js.map +1 -1
- package/dist/esm/sdk/models/operations/updateaccountingcreditmemo.d.ts +1 -1
- package/dist/esm/sdk/models/operations/updateaccountingcreditmemo.js +1 -1
- package/dist/esm/sdk/models/operations/updateaccountingcreditmemo.js.map +1 -1
- package/dist/esm/sdk/models/operations/updatestoragefile.d.ts +1 -0
- package/dist/esm/sdk/models/operations/updatestoragefile.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/updatestoragefile.js +1 -0
- package/dist/esm/sdk/models/operations/updatestoragefile.js.map +1 -1
- package/dist/esm/sdk/models/shared/index.d.ts +1 -0
- package/dist/esm/sdk/models/shared/index.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/index.js +1 -0
- package/dist/esm/sdk/models/shared/index.js.map +1 -1
- package/dist/esm/sdk/models/shared/integrationsupport.d.ts +18 -0
- package/dist/esm/sdk/models/shared/integrationsupport.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/integrationsupport.js +18 -0
- package/dist/esm/sdk/models/shared/integrationsupport.js.map +1 -1
- package/dist/esm/sdk/models/shared/storagefile.d.ts +3 -0
- package/dist/esm/sdk/models/shared/storagefile.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/storagefile.js +3 -0
- package/dist/esm/sdk/models/shared/storagefile.js.map +1 -1
- package/dist/esm/sdk/models/shared/storagereference.d.ts +21 -0
- package/dist/esm/sdk/models/shared/storagereference.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/storagereference.js +24 -0
- package/dist/esm/sdk/models/shared/storagereference.js.map +1 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/storageListStorageFiles.ts +1 -0
- package/src/lib/config.ts +3 -3
- package/src/sdk/models/operations/createaccountingcreditmemo.ts +1 -1
- package/src/sdk/models/operations/createstoragefile.ts +1 -0
- package/src/sdk/models/operations/getaccountingcreditmemo.ts +1 -1
- package/src/sdk/models/operations/getstoragefile.ts +1 -0
- package/src/sdk/models/operations/listaccountingcreditmemoes.ts +1 -1
- package/src/sdk/models/operations/liststoragefiles.ts +7 -0
- package/src/sdk/models/operations/patchaccountingcreditmemo.ts +1 -1
- package/src/sdk/models/operations/patchstoragefile.ts +1 -0
- package/src/sdk/models/operations/updateaccountingcreditmemo.ts +1 -1
- package/src/sdk/models/operations/updatestoragefile.ts +1 -0
- package/src/sdk/models/shared/index.ts +1 -0
- package/src/sdk/models/shared/integrationsupport.ts +34 -0
- package/src/sdk/models/shared/storagefile.ts +10 -0
- package/src/sdk/models/shared/storagereference.ts +59 -0
|
@@ -406,6 +406,13 @@ export const ListRawFields = {
|
|
|
406
406
|
} as const;
|
|
407
407
|
export type ListRawFields = OpenEnum<typeof ListRawFields>;
|
|
408
408
|
|
|
409
|
+
export const ListReference = {
|
|
410
|
+
SupportedRequired: "supported-required",
|
|
411
|
+
Supported: "supported",
|
|
412
|
+
NotSupported: "not-supported",
|
|
413
|
+
} as const;
|
|
414
|
+
export type ListReference = OpenEnum<typeof ListReference>;
|
|
415
|
+
|
|
409
416
|
export const ListRepoId = {
|
|
410
417
|
SupportedRequired: "supported-required",
|
|
411
418
|
Supported: "supported",
|
|
@@ -1026,6 +1033,13 @@ export const VirtualWebhookProjectId = {
|
|
|
1026
1033
|
} as const;
|
|
1027
1034
|
export type VirtualWebhookProjectId = OpenEnum<typeof VirtualWebhookProjectId>;
|
|
1028
1035
|
|
|
1036
|
+
export const VirtualWebhookReference = {
|
|
1037
|
+
SupportedRequired: "supported-required",
|
|
1038
|
+
Supported: "supported",
|
|
1039
|
+
NotSupported: "not-supported",
|
|
1040
|
+
} as const;
|
|
1041
|
+
export type VirtualWebhookReference = OpenEnum<typeof VirtualWebhookReference>;
|
|
1042
|
+
|
|
1029
1043
|
export const VirtualWebhookRepoId = {
|
|
1030
1044
|
SupportedRequired: "supported-required",
|
|
1031
1045
|
Supported: "supported",
|
|
@@ -1192,6 +1206,7 @@ export type IntegrationSupport = {
|
|
|
1192
1206
|
listProjectId?: ListProjectId | undefined;
|
|
1193
1207
|
listQuery?: ListQuery | undefined;
|
|
1194
1208
|
listRawFields?: ListRawFields | undefined;
|
|
1209
|
+
listReference?: ListReference | undefined;
|
|
1195
1210
|
listRepoId?: ListRepoId | undefined;
|
|
1196
1211
|
listRootId?: ListRootId | undefined;
|
|
1197
1212
|
listSaleschannelId?: ListSaleschannelId | undefined;
|
|
@@ -1285,6 +1300,7 @@ export type IntegrationSupport = {
|
|
|
1285
1300
|
virtualWebhookPaymentId?: VirtualWebhookPaymentId | undefined;
|
|
1286
1301
|
virtualWebhookPipelineId?: VirtualWebhookPipelineId | undefined;
|
|
1287
1302
|
virtualWebhookProjectId?: VirtualWebhookProjectId | undefined;
|
|
1303
|
+
virtualWebhookReference?: VirtualWebhookReference | undefined;
|
|
1288
1304
|
virtualWebhookRepoId?: VirtualWebhookRepoId | undefined;
|
|
1289
1305
|
virtualWebhookSaleschannelId?: VirtualWebhookSaleschannelId | undefined;
|
|
1290
1306
|
virtualWebhookShipmentId?: VirtualWebhookShipmentId | undefined;
|
|
@@ -1694,6 +1710,13 @@ export const ListRawFields$inboundSchema: z.ZodType<
|
|
|
1694
1710
|
unknown
|
|
1695
1711
|
> = openEnums.inboundSchema(ListRawFields);
|
|
1696
1712
|
|
|
1713
|
+
/** @internal */
|
|
1714
|
+
export const ListReference$inboundSchema: z.ZodType<
|
|
1715
|
+
ListReference,
|
|
1716
|
+
z.ZodTypeDef,
|
|
1717
|
+
unknown
|
|
1718
|
+
> = openEnums.inboundSchema(ListReference);
|
|
1719
|
+
|
|
1697
1720
|
/** @internal */
|
|
1698
1721
|
export const ListRepoId$inboundSchema: z.ZodType<
|
|
1699
1722
|
ListRepoId,
|
|
@@ -2296,6 +2319,13 @@ export const VirtualWebhookProjectId$inboundSchema: z.ZodType<
|
|
|
2296
2319
|
unknown
|
|
2297
2320
|
> = openEnums.inboundSchema(VirtualWebhookProjectId);
|
|
2298
2321
|
|
|
2322
|
+
/** @internal */
|
|
2323
|
+
export const VirtualWebhookReference$inboundSchema: z.ZodType<
|
|
2324
|
+
VirtualWebhookReference,
|
|
2325
|
+
z.ZodTypeDef,
|
|
2326
|
+
unknown
|
|
2327
|
+
> = openEnums.inboundSchema(VirtualWebhookReference);
|
|
2328
|
+
|
|
2299
2329
|
/** @internal */
|
|
2300
2330
|
export const VirtualWebhookRepoId$inboundSchema: z.ZodType<
|
|
2301
2331
|
VirtualWebhookRepoId,
|
|
@@ -2457,6 +2487,7 @@ export const IntegrationSupport$inboundSchema: z.ZodType<
|
|
|
2457
2487
|
list_project_id: ListProjectId$inboundSchema.optional(),
|
|
2458
2488
|
list_query: ListQuery$inboundSchema.optional(),
|
|
2459
2489
|
list_raw_fields: ListRawFields$inboundSchema.optional(),
|
|
2490
|
+
list_reference: ListReference$inboundSchema.optional(),
|
|
2460
2491
|
list_repo_id: ListRepoId$inboundSchema.optional(),
|
|
2461
2492
|
list_root_id: ListRootId$inboundSchema.optional(),
|
|
2462
2493
|
list_saleschannel_id: ListSaleschannelId$inboundSchema.optional(),
|
|
@@ -2556,6 +2587,7 @@ export const IntegrationSupport$inboundSchema: z.ZodType<
|
|
|
2556
2587
|
virtual_webhook_pipeline_id: VirtualWebhookPipelineId$inboundSchema
|
|
2557
2588
|
.optional(),
|
|
2558
2589
|
virtual_webhook_project_id: VirtualWebhookProjectId$inboundSchema.optional(),
|
|
2590
|
+
virtual_webhook_reference: VirtualWebhookReference$inboundSchema.optional(),
|
|
2559
2591
|
virtual_webhook_repo_id: VirtualWebhookRepoId$inboundSchema.optional(),
|
|
2560
2592
|
virtual_webhook_saleschannel_id: VirtualWebhookSaleschannelId$inboundSchema
|
|
2561
2593
|
.optional(),
|
|
@@ -2636,6 +2668,7 @@ export const IntegrationSupport$inboundSchema: z.ZodType<
|
|
|
2636
2668
|
"list_project_id": "listProjectId",
|
|
2637
2669
|
"list_query": "listQuery",
|
|
2638
2670
|
"list_raw_fields": "listRawFields",
|
|
2671
|
+
"list_reference": "listReference",
|
|
2639
2672
|
"list_repo_id": "listRepoId",
|
|
2640
2673
|
"list_root_id": "listRootId",
|
|
2641
2674
|
"list_saleschannel_id": "listSaleschannelId",
|
|
@@ -2725,6 +2758,7 @@ export const IntegrationSupport$inboundSchema: z.ZodType<
|
|
|
2725
2758
|
"virtual_webhook_payment_id": "virtualWebhookPaymentId",
|
|
2726
2759
|
"virtual_webhook_pipeline_id": "virtualWebhookPipelineId",
|
|
2727
2760
|
"virtual_webhook_project_id": "virtualWebhookProjectId",
|
|
2761
|
+
"virtual_webhook_reference": "virtualWebhookReference",
|
|
2728
2762
|
"virtual_webhook_repo_id": "virtualWebhookRepoId",
|
|
2729
2763
|
"virtual_webhook_saleschannel_id": "virtualWebhookSaleschannelId",
|
|
2730
2764
|
"virtual_webhook_shipment_id": "virtualWebhookShipmentId",
|
|
@@ -15,6 +15,12 @@ import {
|
|
|
15
15
|
StoragePermission$Outbound,
|
|
16
16
|
StoragePermission$outboundSchema,
|
|
17
17
|
} from "./storagepermission.js";
|
|
18
|
+
import {
|
|
19
|
+
StorageReference,
|
|
20
|
+
StorageReference$inboundSchema,
|
|
21
|
+
StorageReference$Outbound,
|
|
22
|
+
StorageReference$outboundSchema,
|
|
23
|
+
} from "./storagereference.js";
|
|
18
24
|
|
|
19
25
|
export const StorageFileType = {
|
|
20
26
|
File: "FILE",
|
|
@@ -34,6 +40,7 @@ export type StorageFile = {
|
|
|
34
40
|
parentId?: string | undefined;
|
|
35
41
|
permissions?: Array<StoragePermission> | undefined;
|
|
36
42
|
raw?: { [k: string]: any } | undefined;
|
|
43
|
+
references?: Array<StorageReference> | undefined;
|
|
37
44
|
size?: number | undefined;
|
|
38
45
|
type?: StorageFileType | undefined;
|
|
39
46
|
updatedAt?: Date | undefined;
|
|
@@ -73,6 +80,7 @@ export const StorageFile$inboundSchema: z.ZodType<
|
|
|
73
80
|
parent_id: z.string().optional(),
|
|
74
81
|
permissions: z.array(StoragePermission$inboundSchema).optional(),
|
|
75
82
|
raw: z.record(z.any()).optional(),
|
|
83
|
+
references: z.array(StorageReference$inboundSchema).optional(),
|
|
76
84
|
size: z.number().optional(),
|
|
77
85
|
type: StorageFileType$inboundSchema.optional(),
|
|
78
86
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
@@ -104,6 +112,7 @@ export type StorageFile$Outbound = {
|
|
|
104
112
|
parent_id?: string | undefined;
|
|
105
113
|
permissions?: Array<StoragePermission$Outbound> | undefined;
|
|
106
114
|
raw?: { [k: string]: any } | undefined;
|
|
115
|
+
references?: Array<StorageReference$Outbound> | undefined;
|
|
107
116
|
size?: number | undefined;
|
|
108
117
|
type?: string | undefined;
|
|
109
118
|
updated_at?: string | undefined;
|
|
@@ -129,6 +138,7 @@ export const StorageFile$outboundSchema: z.ZodType<
|
|
|
129
138
|
parentId: z.string().optional(),
|
|
130
139
|
permissions: z.array(StoragePermission$outboundSchema).optional(),
|
|
131
140
|
raw: z.record(z.any()).optional(),
|
|
141
|
+
references: z.array(StorageReference$outboundSchema).optional(),
|
|
132
142
|
size: z.number().optional(),
|
|
133
143
|
type: StorageFileType$outboundSchema.optional(),
|
|
134
144
|
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type StorageReference = {
|
|
11
|
+
id?: string | undefined;
|
|
12
|
+
name?: string | undefined;
|
|
13
|
+
type?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const StorageReference$inboundSchema: z.ZodType<
|
|
18
|
+
StorageReference,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
unknown
|
|
21
|
+
> = z.object({
|
|
22
|
+
id: z.string().optional(),
|
|
23
|
+
name: z.string().optional(),
|
|
24
|
+
type: z.string().optional(),
|
|
25
|
+
});
|
|
26
|
+
/** @internal */
|
|
27
|
+
export type StorageReference$Outbound = {
|
|
28
|
+
id?: string | undefined;
|
|
29
|
+
name?: string | undefined;
|
|
30
|
+
type?: string | undefined;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const StorageReference$outboundSchema: z.ZodType<
|
|
35
|
+
StorageReference$Outbound,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
StorageReference
|
|
38
|
+
> = z.object({
|
|
39
|
+
id: z.string().optional(),
|
|
40
|
+
name: z.string().optional(),
|
|
41
|
+
type: z.string().optional(),
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
export function storageReferenceToJSON(
|
|
45
|
+
storageReference: StorageReference,
|
|
46
|
+
): string {
|
|
47
|
+
return JSON.stringify(
|
|
48
|
+
StorageReference$outboundSchema.parse(storageReference),
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
export function storageReferenceFromJSON(
|
|
52
|
+
jsonString: string,
|
|
53
|
+
): SafeParseResult<StorageReference, SDKValidationError> {
|
|
54
|
+
return safeParse(
|
|
55
|
+
jsonString,
|
|
56
|
+
(x) => StorageReference$inboundSchema.parse(JSON.parse(x)),
|
|
57
|
+
`Failed to parse 'StorageReference' from JSON`,
|
|
58
|
+
);
|
|
59
|
+
}
|