@factify/sdk 0.3.15-rc.6 → 0.3.15-rc.7
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/FUNCTIONS.md +2 -0
- package/README.md +6 -4
- package/dist/commonjs/funcs/documentsList.js +1 -0
- package/dist/commonjs/funcs/documentsList.js.map +1 -1
- package/dist/commonjs/funcs/organizationsInvitesList.js +1 -0
- package/dist/commonjs/funcs/organizationsInvitesList.js.map +1 -1
- package/dist/commonjs/funcs/quotasQuotaServiceDeleteOrganizationQuota.d.ts +1 -1
- package/dist/commonjs/funcs/quotasQuotaServiceDeleteOrganizationQuota.js +1 -1
- package/dist/commonjs/funcs/quotasQuotaServiceSetOrganizationQuota.d.ts +1 -1
- package/dist/commonjs/funcs/quotasQuotaServiceSetOrganizationQuota.js +1 -1
- package/dist/commonjs/funcs/usageGetUsageHistory.js +1 -0
- package/dist/commonjs/funcs/usageGetUsageHistory.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/components/createdocumentrequest.d.ts +5 -2
- package/dist/commonjs/models/components/createdocumentrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/createdocumentrequest.js +1 -1
- package/dist/commonjs/models/components/createdocumentrequest.js.map +1 -1
- package/dist/commonjs/models/components/document.d.ts +2 -2
- package/dist/commonjs/models/components/document.d.ts.map +1 -1
- package/dist/commonjs/models/components/document.js +1 -1
- package/dist/commonjs/models/components/document.js.map +1 -1
- package/dist/commonjs/models/operations/getusagehistory.d.ts +6 -1
- package/dist/commonjs/models/operations/getusagehistory.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getusagehistory.js +2 -0
- package/dist/commonjs/models/operations/getusagehistory.js.map +1 -1
- package/dist/commonjs/models/operations/listdocuments.d.ts +10 -5
- package/dist/commonjs/models/operations/listdocuments.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listdocuments.js +4 -2
- package/dist/commonjs/models/operations/listdocuments.js.map +1 -1
- package/dist/commonjs/models/operations/listorganizationinvites.d.ts +6 -1
- package/dist/commonjs/models/operations/listorganizationinvites.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listorganizationinvites.js +2 -0
- package/dist/commonjs/models/operations/listorganizationinvites.js.map +1 -1
- package/dist/commonjs/sdk/quotas.d.ts +2 -2
- package/dist/commonjs/sdk/quotas.js +2 -2
- package/dist/esm/funcs/documentsList.js +1 -0
- package/dist/esm/funcs/documentsList.js.map +1 -1
- package/dist/esm/funcs/organizationsInvitesList.js +1 -0
- package/dist/esm/funcs/organizationsInvitesList.js.map +1 -1
- package/dist/esm/funcs/quotasQuotaServiceDeleteOrganizationQuota.d.ts +1 -1
- package/dist/esm/funcs/quotasQuotaServiceDeleteOrganizationQuota.js +1 -1
- package/dist/esm/funcs/quotasQuotaServiceSetOrganizationQuota.d.ts +1 -1
- package/dist/esm/funcs/quotasQuotaServiceSetOrganizationQuota.js +1 -1
- package/dist/esm/funcs/usageGetUsageHistory.js +1 -0
- package/dist/esm/funcs/usageGetUsageHistory.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/components/createdocumentrequest.d.ts +5 -2
- package/dist/esm/models/components/createdocumentrequest.d.ts.map +1 -1
- package/dist/esm/models/components/createdocumentrequest.js +1 -1
- package/dist/esm/models/components/createdocumentrequest.js.map +1 -1
- package/dist/esm/models/components/document.d.ts +2 -2
- package/dist/esm/models/components/document.d.ts.map +1 -1
- package/dist/esm/models/components/document.js +1 -1
- package/dist/esm/models/components/document.js.map +1 -1
- package/dist/esm/models/operations/getusagehistory.d.ts +6 -1
- package/dist/esm/models/operations/getusagehistory.d.ts.map +1 -1
- package/dist/esm/models/operations/getusagehistory.js +2 -0
- package/dist/esm/models/operations/getusagehistory.js.map +1 -1
- package/dist/esm/models/operations/listdocuments.d.ts +10 -5
- package/dist/esm/models/operations/listdocuments.d.ts.map +1 -1
- package/dist/esm/models/operations/listdocuments.js +4 -2
- package/dist/esm/models/operations/listdocuments.js.map +1 -1
- package/dist/esm/models/operations/listorganizationinvites.d.ts +6 -1
- package/dist/esm/models/operations/listorganizationinvites.d.ts.map +1 -1
- package/dist/esm/models/operations/listorganizationinvites.js +2 -0
- package/dist/esm/models/operations/listorganizationinvites.js.map +1 -1
- package/dist/esm/sdk/quotas.d.ts +2 -2
- package/dist/esm/sdk/quotas.js +2 -2
- package/examples/documentsList.example.ts +2 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/documentsList.ts +1 -0
- package/src/funcs/organizationsInvitesList.ts +1 -0
- package/src/funcs/quotasQuotaServiceDeleteOrganizationQuota.ts +1 -1
- package/src/funcs/quotasQuotaServiceSetOrganizationQuota.ts +1 -1
- package/src/funcs/usageGetUsageHistory.ts +1 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/createdocumentrequest.ts +6 -3
- package/src/models/components/document.ts +3 -3
- package/src/models/operations/getusagehistory.ts +8 -1
- package/src/models/operations/listdocuments.ts +18 -9
- package/src/models/operations/listorganizationinvites.ts +10 -1
- package/src/sdk/quotas.ts +2 -2
package/src/lib/config.ts
CHANGED
|
@@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
65
65
|
export const SDK_METADATA = {
|
|
66
66
|
language: "typescript",
|
|
67
67
|
openapiDocVersion: "1.0.0",
|
|
68
|
-
sdkVersion: "0.3.15-rc.
|
|
68
|
+
sdkVersion: "0.3.15-rc.7",
|
|
69
69
|
genVersion: "2.865.2",
|
|
70
|
-
userAgent: "speakeasy-sdk/typescript 0.3.15-rc.
|
|
70
|
+
userAgent: "speakeasy-sdk/typescript 0.3.15-rc.7 2.865.2 1.0.0 @factify/sdk",
|
|
71
71
|
} as const;
|
|
@@ -16,7 +16,10 @@ export type CreateDocumentRequestPayload = {
|
|
|
16
16
|
* CreateDocumentRequest contains the file and metadata for creating a document.
|
|
17
17
|
*/
|
|
18
18
|
export type CreateDocumentRequest = {
|
|
19
|
-
|
|
19
|
+
/**
|
|
20
|
+
* Document access level. Defaults to organization if user belongs to an org, otherwise private.
|
|
21
|
+
*/
|
|
22
|
+
accessLevel?: AccessLevel | null | undefined;
|
|
20
23
|
/**
|
|
21
24
|
* Optional document description.
|
|
22
25
|
*/
|
|
@@ -63,7 +66,7 @@ export function createDocumentRequestPayloadToJSON(
|
|
|
63
66
|
|
|
64
67
|
/** @internal */
|
|
65
68
|
export type CreateDocumentRequest$Outbound = {
|
|
66
|
-
access_level?: string | undefined;
|
|
69
|
+
access_level?: string | null | undefined;
|
|
67
70
|
description?: string | null | undefined;
|
|
68
71
|
payload: CreateDocumentRequestPayload$Outbound | Blob;
|
|
69
72
|
title: string;
|
|
@@ -75,7 +78,7 @@ export const CreateDocumentRequest$outboundSchema: z.ZodMiniType<
|
|
|
75
78
|
CreateDocumentRequest
|
|
76
79
|
> = z.pipe(
|
|
77
80
|
z.object({
|
|
78
|
-
accessLevel: z.optional(AccessLevel$outboundSchema),
|
|
81
|
+
accessLevel: z.optional(z.nullable(AccessLevel$outboundSchema)),
|
|
79
82
|
description: z.optional(z.nullable(z.string())),
|
|
80
83
|
payload: z.union([
|
|
81
84
|
z.lazy(() => CreateDocumentRequestPayload$outboundSchema),
|
|
@@ -39,9 +39,9 @@ export type Document = {
|
|
|
39
39
|
*/
|
|
40
40
|
createdBy: Subject;
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* Reference to the current version, if any.
|
|
43
43
|
*/
|
|
44
|
-
currentVersion?: VersionRef | undefined;
|
|
44
|
+
currentVersion?: VersionRef | null | undefined;
|
|
45
45
|
/**
|
|
46
46
|
* Optional document description.
|
|
47
47
|
*/
|
|
@@ -108,7 +108,7 @@ export const Document$inboundSchema: z.ZodMiniType<Document, unknown> = z.pipe(
|
|
|
108
108
|
access_level: AccessLevel$inboundSchema,
|
|
109
109
|
created_at: types.date(),
|
|
110
110
|
created_by: Subject$inboundSchema,
|
|
111
|
-
current_version:
|
|
111
|
+
current_version: z.optional(z.nullable(VersionRef$inboundSchema)),
|
|
112
112
|
description: z.optional(z.nullable(types.string())),
|
|
113
113
|
general_access: types.optional(AccessLevel$inboundSchema),
|
|
114
114
|
id: types.string(),
|
|
@@ -15,9 +15,13 @@ export type GetUsageHistoryRequest = {
|
|
|
15
15
|
*/
|
|
16
16
|
organizationId?: string | undefined;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Return results after this timestamp (inclusive).
|
|
19
19
|
*/
|
|
20
20
|
dateAfter?: Date | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Return results before this timestamp (inclusive).
|
|
23
|
+
*/
|
|
24
|
+
dateBefore?: Date | undefined;
|
|
21
25
|
};
|
|
22
26
|
|
|
23
27
|
export type GetUsageHistoryResponse = {
|
|
@@ -29,6 +33,7 @@ export type GetUsageHistoryResponse = {
|
|
|
29
33
|
export type GetUsageHistoryRequest$Outbound = {
|
|
30
34
|
organization_id?: string | undefined;
|
|
31
35
|
"date.after"?: string | undefined;
|
|
36
|
+
"date.before"?: string | undefined;
|
|
32
37
|
};
|
|
33
38
|
|
|
34
39
|
/** @internal */
|
|
@@ -39,11 +44,13 @@ export const GetUsageHistoryRequest$outboundSchema: z.ZodMiniType<
|
|
|
39
44
|
z.object({
|
|
40
45
|
organizationId: z.optional(z.string()),
|
|
41
46
|
dateAfter: z.optional(z.pipe(z.date(), z.transform(v => v.toISOString()))),
|
|
47
|
+
dateBefore: z.optional(z.pipe(z.date(), z.transform(v => v.toISOString()))),
|
|
42
48
|
}),
|
|
43
49
|
z.transform((v) => {
|
|
44
50
|
return remap$(v, {
|
|
45
51
|
organizationId: "organization_id",
|
|
46
52
|
dateAfter: "date.after",
|
|
53
|
+
dateBefore: "date.before",
|
|
47
54
|
});
|
|
48
55
|
}),
|
|
49
56
|
);
|
|
@@ -22,6 +22,14 @@ export type ListDocumentsRequest = {
|
|
|
22
22
|
* Maximum number of items to return per page (1-100). Default: 50.
|
|
23
23
|
*/
|
|
24
24
|
pageSize?: number | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Return results after this timestamp (inclusive).
|
|
27
|
+
*/
|
|
28
|
+
createdAfter?: Date | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Return results before this timestamp (inclusive).
|
|
31
|
+
*/
|
|
32
|
+
createdBefore?: Date | undefined;
|
|
25
33
|
/**
|
|
26
34
|
* Filter by creator ID(s) (user or bot). Returns documents matching ANY of the specified IDs.
|
|
27
35
|
*
|
|
@@ -81,10 +89,6 @@ export type ListDocumentsRequest = {
|
|
|
81
89
|
* REST: ?organization_scope=true
|
|
82
90
|
*/
|
|
83
91
|
organizationScope?: boolean | undefined;
|
|
84
|
-
/**
|
|
85
|
-
* Filter by created.after (RFC 3339 format, e.g., 2024-01-15T09:30:00Z)
|
|
86
|
-
*/
|
|
87
|
-
createdAfter?: Date | undefined;
|
|
88
92
|
};
|
|
89
93
|
|
|
90
94
|
export type ListDocumentsResponse = {
|
|
@@ -96,6 +100,8 @@ export type ListDocumentsResponse = {
|
|
|
96
100
|
export type ListDocumentsRequest$Outbound = {
|
|
97
101
|
page_token?: string | undefined;
|
|
98
102
|
page_size?: number | undefined;
|
|
103
|
+
"created.after"?: string | undefined;
|
|
104
|
+
"created.before"?: string | undefined;
|
|
99
105
|
created_by_id?: Array<string> | undefined;
|
|
100
106
|
access_level?: Array<string> | undefined;
|
|
101
107
|
processing_status?: Array<string> | undefined;
|
|
@@ -104,7 +110,6 @@ export type ListDocumentsRequest$Outbound = {
|
|
|
104
110
|
ownership?: Array<string> | undefined;
|
|
105
111
|
trash_state?: Array<string> | undefined;
|
|
106
112
|
organization_scope?: boolean | undefined;
|
|
107
|
-
"created.after"?: string | undefined;
|
|
108
113
|
};
|
|
109
114
|
|
|
110
115
|
/** @internal */
|
|
@@ -115,6 +120,12 @@ export const ListDocumentsRequest$outboundSchema: z.ZodMiniType<
|
|
|
115
120
|
z.object({
|
|
116
121
|
pageToken: z.optional(z.string()),
|
|
117
122
|
pageSize: z.optional(z.int()),
|
|
123
|
+
createdAfter: z.optional(
|
|
124
|
+
z.pipe(z.date(), z.transform(v => v.toISOString())),
|
|
125
|
+
),
|
|
126
|
+
createdBefore: z.optional(
|
|
127
|
+
z.pipe(z.date(), z.transform(v => v.toISOString())),
|
|
128
|
+
),
|
|
118
129
|
createdById: z.optional(z.array(z.string())),
|
|
119
130
|
accessLevel: z.optional(z.array(components.AccessLevel$outboundSchema)),
|
|
120
131
|
processingStatus: z.optional(
|
|
@@ -127,20 +138,18 @@ export const ListDocumentsRequest$outboundSchema: z.ZodMiniType<
|
|
|
127
138
|
z.array(components.DocumentTrashState$outboundSchema),
|
|
128
139
|
),
|
|
129
140
|
organizationScope: z.optional(z.boolean()),
|
|
130
|
-
createdAfter: z.optional(
|
|
131
|
-
z.pipe(z.date(), z.transform(v => v.toISOString())),
|
|
132
|
-
),
|
|
133
141
|
}),
|
|
134
142
|
z.transform((v) => {
|
|
135
143
|
return remap$(v, {
|
|
136
144
|
pageToken: "page_token",
|
|
137
145
|
pageSize: "page_size",
|
|
146
|
+
createdAfter: "created.after",
|
|
147
|
+
createdBefore: "created.before",
|
|
138
148
|
createdById: "created_by_id",
|
|
139
149
|
accessLevel: "access_level",
|
|
140
150
|
processingStatus: "processing_status",
|
|
141
151
|
trashState: "trash_state",
|
|
142
152
|
organizationScope: "organization_scope",
|
|
143
|
-
createdAfter: "created.after",
|
|
144
153
|
});
|
|
145
154
|
}),
|
|
146
155
|
);
|
|
@@ -56,9 +56,13 @@ export type ListOrganizationInvitesRequest = {
|
|
|
56
56
|
*/
|
|
57
57
|
senderId?: string | undefined;
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Return results after this timestamp (inclusive).
|
|
60
60
|
*/
|
|
61
61
|
createdAfter?: Date | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* Return results before this timestamp (inclusive).
|
|
64
|
+
*/
|
|
65
|
+
createdBefore?: Date | undefined;
|
|
62
66
|
};
|
|
63
67
|
|
|
64
68
|
export type ListOrganizationInvitesResponse = {
|
|
@@ -76,6 +80,7 @@ export type ListOrganizationInvitesRequest$Outbound = {
|
|
|
76
80
|
"email.exact"?: string | undefined;
|
|
77
81
|
sender_id?: string | undefined;
|
|
78
82
|
"created.after"?: string | undefined;
|
|
83
|
+
"created.before"?: string | undefined;
|
|
79
84
|
};
|
|
80
85
|
|
|
81
86
|
/** @internal */
|
|
@@ -96,6 +101,9 @@ export const ListOrganizationInvitesRequest$outboundSchema: z.ZodMiniType<
|
|
|
96
101
|
createdAfter: z.optional(
|
|
97
102
|
z.pipe(z.date(), z.transform(v => v.toISOString())),
|
|
98
103
|
),
|
|
104
|
+
createdBefore: z.optional(
|
|
105
|
+
z.pipe(z.date(), z.transform(v => v.toISOString())),
|
|
106
|
+
),
|
|
99
107
|
}),
|
|
100
108
|
z.transform((v) => {
|
|
101
109
|
return remap$(v, {
|
|
@@ -106,6 +114,7 @@ export const ListOrganizationInvitesRequest$outboundSchema: z.ZodMiniType<
|
|
|
106
114
|
emailExact: "email.exact",
|
|
107
115
|
senderId: "sender_id",
|
|
108
116
|
createdAfter: "created.after",
|
|
117
|
+
createdBefore: "created.before",
|
|
109
118
|
});
|
|
110
119
|
}),
|
|
111
120
|
);
|
package/src/sdk/quotas.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { unwrapAsync } from "../types/fp.js";
|
|
|
10
10
|
|
|
11
11
|
export class Quotas extends ClientSDK {
|
|
12
12
|
/**
|
|
13
|
-
* DeleteOrganizationQuota
|
|
13
|
+
* DeleteOrganizationQuota
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
16
|
* DeleteOrganizationQuota removes quota configuration for an organization.
|
|
@@ -29,7 +29,7 @@ export class Quotas extends ClientSDK {
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
|
-
* SetOrganizationQuota
|
|
32
|
+
* SetOrganizationQuota
|
|
33
33
|
*
|
|
34
34
|
* @remarks
|
|
35
35
|
* SetOrganizationQuota creates or updates quota configuration for an organization.
|