telnyx 7.8.0 → 7.10.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/CHANGELOG.md +23 -0
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/ai/ai.d.mts +6 -2
- package/resources/ai/ai.d.mts.map +1 -1
- package/resources/ai/ai.d.ts +6 -2
- package/resources/ai/ai.d.ts.map +1 -1
- package/resources/ai/ai.js +4 -0
- package/resources/ai/ai.js.map +1 -1
- package/resources/ai/ai.mjs +4 -0
- package/resources/ai/ai.mjs.map +1 -1
- package/resources/ai/anthropic/anthropic.d.mts +10 -0
- package/resources/ai/anthropic/anthropic.d.mts.map +1 -0
- package/resources/ai/anthropic/anthropic.d.ts +10 -0
- package/resources/ai/anthropic/anthropic.d.ts.map +1 -0
- package/resources/ai/anthropic/anthropic.js +17 -0
- package/resources/ai/anthropic/anthropic.js.map +1 -0
- package/resources/ai/anthropic/anthropic.mjs +12 -0
- package/resources/ai/anthropic/anthropic.mjs.map +1 -0
- package/resources/ai/anthropic/index.d.mts +3 -0
- package/resources/ai/anthropic/index.d.mts.map +1 -0
- package/resources/ai/anthropic/index.d.ts +3 -0
- package/resources/ai/anthropic/index.d.ts.map +1 -0
- package/resources/ai/anthropic/index.js +9 -0
- package/resources/ai/anthropic/index.js.map +1 -0
- package/resources/ai/anthropic/index.mjs +4 -0
- package/resources/ai/anthropic/index.mjs.map +1 -0
- package/resources/ai/anthropic/v1.d.mts +148 -0
- package/resources/ai/anthropic/v1.d.mts.map +1 -0
- package/resources/ai/anthropic/v1.d.ts +148 -0
- package/resources/ai/anthropic/v1.d.ts.map +1 -0
- package/resources/ai/anthropic/v1.js +35 -0
- package/resources/ai/anthropic/v1.js.map +1 -0
- package/resources/ai/anthropic/v1.mjs +31 -0
- package/resources/ai/anthropic/v1.mjs.map +1 -0
- package/resources/ai/anthropic.d.mts +2 -0
- package/resources/ai/anthropic.d.mts.map +1 -0
- package/resources/ai/anthropic.d.ts +2 -0
- package/resources/ai/anthropic.d.ts.map +1 -0
- package/resources/ai/anthropic.js +6 -0
- package/resources/ai/anthropic.js.map +1 -0
- package/resources/ai/anthropic.mjs +3 -0
- package/resources/ai/anthropic.mjs.map +1 -0
- package/resources/ai/assistants/assistants.d.mts +16 -5
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +16 -5
- package/resources/ai/assistants/assistants.d.ts.map +1 -1
- package/resources/ai/assistants/assistants.js +2 -2
- package/resources/ai/assistants/assistants.js.map +1 -1
- package/resources/ai/assistants/assistants.mjs +2 -2
- package/resources/ai/assistants/assistants.mjs.map +1 -1
- package/resources/ai/conversations/conversation-insights.d.mts +105 -0
- package/resources/ai/conversations/conversation-insights.d.mts.map +1 -0
- package/resources/ai/conversations/conversation-insights.d.ts +105 -0
- package/resources/ai/conversations/conversation-insights.d.ts.map +1 -0
- package/resources/ai/conversations/conversation-insights.js +24 -0
- package/resources/ai/conversations/conversation-insights.js.map +1 -0
- package/resources/ai/conversations/conversation-insights.mjs +20 -0
- package/resources/ai/conversations/conversation-insights.mjs.map +1 -0
- package/resources/ai/conversations/conversations.d.mts +4 -0
- package/resources/ai/conversations/conversations.d.mts.map +1 -1
- package/resources/ai/conversations/conversations.d.ts +4 -0
- package/resources/ai/conversations/conversations.d.ts.map +1 -1
- package/resources/ai/conversations/conversations.js +4 -0
- package/resources/ai/conversations/conversations.js.map +1 -1
- package/resources/ai/conversations/conversations.mjs +4 -0
- package/resources/ai/conversations/conversations.mjs.map +1 -1
- package/resources/ai/conversations/index.d.mts +1 -0
- package/resources/ai/conversations/index.d.mts.map +1 -1
- package/resources/ai/conversations/index.d.ts +1 -0
- package/resources/ai/conversations/index.d.ts.map +1 -1
- package/resources/ai/conversations/index.js +3 -1
- package/resources/ai/conversations/index.js.map +1 -1
- package/resources/ai/conversations/index.mjs +1 -0
- package/resources/ai/conversations/index.mjs.map +1 -1
- package/resources/ai/index.d.mts +2 -1
- package/resources/ai/index.d.mts.map +1 -1
- package/resources/ai/index.d.ts +2 -1
- package/resources/ai/index.d.ts.map +1 -1
- package/resources/ai/index.js +17 -15
- package/resources/ai/index.js.map +1 -1
- package/resources/ai/index.mjs +1 -0
- package/resources/ai/index.mjs.map +1 -1
- package/resources/ai/tools.d.mts +22 -1
- package/resources/ai/tools.d.mts.map +1 -1
- package/resources/ai/tools.d.ts +22 -1
- package/resources/ai/tools.d.ts.map +1 -1
- package/resources/calls/actions.d.mts +8 -4
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +8 -4
- package/resources/calls/actions.d.ts.map +1 -1
- package/resources/calls/calls.d.mts +8 -0
- package/resources/calls/calls.d.mts.map +1 -1
- package/resources/calls/calls.d.ts +8 -0
- package/resources/calls/calls.d.ts.map +1 -1
- package/resources/calls/calls.js.map +1 -1
- package/resources/calls/calls.mjs.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/managed-accounts/managed-accounts.d.mts +11 -2
- package/resources/managed-accounts/managed-accounts.d.mts.map +1 -1
- package/resources/managed-accounts/managed-accounts.d.ts +11 -2
- package/resources/managed-accounts/managed-accounts.d.ts.map +1 -1
- package/resources/managed-accounts/managed-accounts.js.map +1 -1
- package/resources/managed-accounts/managed-accounts.mjs.map +1 -1
- package/resources/requirements.d.mts +28 -3
- package/resources/requirements.d.mts.map +1 -1
- package/resources/requirements.d.ts +28 -3
- package/resources/requirements.d.ts.map +1 -1
- package/resources/requirements.js +2 -2
- package/resources/requirements.js.map +1 -1
- package/resources/requirements.mjs +2 -2
- package/resources/requirements.mjs.map +1 -1
- package/resources/speech-to-text/speech-to-text.d.mts +1 -1
- package/resources/speech-to-text/speech-to-text.d.mts.map +1 -1
- package/resources/speech-to-text/speech-to-text.d.ts +1 -1
- package/resources/speech-to-text/speech-to-text.d.ts.map +1 -1
- package/resources/storage/cloudfs/actions.d.mts +43 -0
- package/resources/storage/cloudfs/actions.d.mts.map +1 -0
- package/resources/storage/cloudfs/actions.d.ts +43 -0
- package/resources/storage/cloudfs/actions.d.ts.map +1 -0
- package/resources/storage/cloudfs/actions.js +39 -0
- package/resources/storage/cloudfs/actions.js.map +1 -0
- package/resources/storage/cloudfs/actions.mjs +35 -0
- package/resources/storage/cloudfs/actions.mjs.map +1 -0
- package/resources/storage/cloudfs/cloudfs.d.mts +345 -0
- package/resources/storage/cloudfs/cloudfs.d.mts.map +1 -0
- package/resources/storage/cloudfs/cloudfs.d.ts +345 -0
- package/resources/storage/cloudfs/cloudfs.d.ts.map +1 -0
- package/resources/storage/cloudfs/cloudfs.js +116 -0
- package/resources/storage/cloudfs/cloudfs.js.map +1 -0
- package/resources/storage/cloudfs/cloudfs.mjs +111 -0
- package/resources/storage/cloudfs/cloudfs.mjs.map +1 -0
- package/resources/storage/cloudfs/index.d.mts +3 -0
- package/resources/storage/cloudfs/index.d.mts.map +1 -0
- package/resources/storage/cloudfs/index.d.ts +3 -0
- package/resources/storage/cloudfs/index.d.ts.map +1 -0
- package/resources/storage/cloudfs/index.js +9 -0
- package/resources/storage/cloudfs/index.js.map +1 -0
- package/resources/storage/cloudfs/index.mjs +4 -0
- package/resources/storage/cloudfs/index.mjs.map +1 -0
- package/resources/storage/cloudfs.d.mts +2 -0
- package/resources/storage/cloudfs.d.mts.map +1 -0
- package/resources/storage/cloudfs.d.ts +2 -0
- package/resources/storage/cloudfs.d.ts.map +1 -0
- package/resources/storage/cloudfs.js +6 -0
- package/resources/storage/cloudfs.js.map +1 -0
- package/resources/storage/cloudfs.mjs +3 -0
- package/resources/storage/cloudfs.mjs.map +1 -0
- package/resources/storage/index.d.mts +1 -0
- package/resources/storage/index.d.mts.map +1 -1
- package/resources/storage/index.d.ts +1 -0
- package/resources/storage/index.d.ts.map +1 -1
- package/resources/storage/index.js +7 -5
- package/resources/storage/index.js.map +1 -1
- package/resources/storage/index.mjs +1 -0
- package/resources/storage/index.mjs.map +1 -1
- package/resources/storage/storage.d.mts +4 -0
- package/resources/storage/storage.d.mts.map +1 -1
- package/resources/storage/storage.d.ts +4 -0
- package/resources/storage/storage.d.ts.map +1 -1
- package/resources/storage/storage.js +4 -0
- package/resources/storage/storage.js.map +1 -1
- package/resources/storage/storage.mjs +4 -0
- package/resources/storage/storage.mjs.map +1 -1
- package/resources/verify-profiles.d.mts +3 -3
- package/resources/verify-profiles.d.ts +3 -3
- package/resources/webhooks.d.mts +162 -22
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +162 -22
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +2 -0
- package/src/resources/ai/ai.ts +8 -0
- package/src/resources/ai/anthropic/anthropic.ts +19 -0
- package/src/resources/ai/anthropic/index.ts +4 -0
- package/src/resources/ai/anthropic/v1.ts +157 -0
- package/src/resources/ai/anthropic.ts +3 -0
- package/src/resources/ai/assistants/assistants.ts +19 -5
- package/src/resources/ai/conversations/conversation-insights.ts +125 -0
- package/src/resources/ai/conversations/conversations.ts +15 -0
- package/src/resources/ai/conversations/index.ts +5 -0
- package/src/resources/ai/index.ts +2 -0
- package/src/resources/ai/tools.ts +28 -0
- package/src/resources/calls/actions.ts +8 -4
- package/src/resources/calls/calls.ts +9 -0
- package/src/resources/index.ts +1 -0
- package/src/resources/managed-accounts/managed-accounts.ts +13 -2
- package/src/resources/requirements.ts +38 -3
- package/src/resources/speech-to-text/speech-to-text.ts +1 -1
- package/src/resources/storage/cloudfs/actions.ts +59 -0
- package/src/resources/storage/cloudfs/cloudfs.ts +446 -0
- package/src/resources/storage/cloudfs/index.ts +13 -0
- package/src/resources/storage/cloudfs.ts +3 -0
- package/src/resources/storage/index.ts +10 -0
- package/src/resources/storage/storage.ts +24 -0
- package/src/resources/verify-profiles.ts +3 -3
- package/src/resources/webhooks.ts +195 -14
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -29,7 +29,7 @@ export declare class Requirements extends APIResource {
|
|
|
29
29
|
* );
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<RequirementRetrieveResponse>;
|
|
32
|
+
retrieve(id: string, query?: RequirementRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<RequirementRetrieveResponse>;
|
|
33
33
|
}
|
|
34
34
|
export type DocReqsRequirementsDefaultFlatPagination = DefaultFlatPagination<DocReqsRequirement>;
|
|
35
35
|
export interface DocReqsRequirement {
|
|
@@ -50,6 +50,15 @@ export interface DocReqsRequirement {
|
|
|
50
50
|
* ISO 8601 formatted date-time indicating when the resource was created.
|
|
51
51
|
*/
|
|
52
52
|
created_at?: string;
|
|
53
|
+
/**
|
|
54
|
+
* When this version was superseded. NULL means this is the active or pending
|
|
55
|
+
* version.
|
|
56
|
+
*/
|
|
57
|
+
effective_end_at?: string | null;
|
|
58
|
+
/**
|
|
59
|
+
* When this version became (or will become) active.
|
|
60
|
+
*/
|
|
61
|
+
effective_start_at?: string | null;
|
|
53
62
|
/**
|
|
54
63
|
* The locality where this requirement applies
|
|
55
64
|
*/
|
|
@@ -66,11 +75,15 @@ export interface DocReqsRequirement {
|
|
|
66
75
|
/**
|
|
67
76
|
* Lists the requirement types necessary to fulfill this requirement
|
|
68
77
|
*/
|
|
69
|
-
|
|
78
|
+
requirement_types?: Array<Shared.DocReqsRequirementType>;
|
|
70
79
|
/**
|
|
71
80
|
* ISO 8601 formatted date-time indicating when the resource was last updated.
|
|
72
81
|
*/
|
|
73
82
|
updated_at?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Version number. Increments with each new version. Defaults to 1.
|
|
85
|
+
*/
|
|
86
|
+
version?: number;
|
|
74
87
|
}
|
|
75
88
|
export interface RequirementRetrieveResponse {
|
|
76
89
|
data?: DocReqsRequirement;
|
|
@@ -86,6 +99,11 @@ export interface RequirementListParams extends DefaultFlatPaginationParams {
|
|
|
86
99
|
* sort[]
|
|
87
100
|
*/
|
|
88
101
|
sort?: Array<'created_at' | 'updated_at' | 'country_code' | 'phone_number_type' | '-created_at' | '-updated_at' | '-country_code' | '-phone_number_type'>;
|
|
102
|
+
/**
|
|
103
|
+
* Filter by requirement version number. When omitted, returns the currently-active
|
|
104
|
+
* version.
|
|
105
|
+
*/
|
|
106
|
+
version?: number;
|
|
89
107
|
}
|
|
90
108
|
export declare namespace RequirementListParams {
|
|
91
109
|
/**
|
|
@@ -108,7 +126,14 @@ export declare namespace RequirementListParams {
|
|
|
108
126
|
phone_number_type?: 'local' | 'national' | 'toll_free';
|
|
109
127
|
}
|
|
110
128
|
}
|
|
129
|
+
export interface RequirementRetrieveParams {
|
|
130
|
+
/**
|
|
131
|
+
* Filter by requirement version number. When omitted, returns the currently-active
|
|
132
|
+
* version.
|
|
133
|
+
*/
|
|
134
|
+
version?: number;
|
|
135
|
+
}
|
|
111
136
|
export declare namespace Requirements {
|
|
112
|
-
export { type DocReqsRequirement as DocReqsRequirement, type RequirementRetrieveResponse as RequirementRetrieveResponse, type DocReqsRequirementsDefaultFlatPagination as DocReqsRequirementsDefaultFlatPagination, type RequirementListParams as RequirementListParams, };
|
|
137
|
+
export { type DocReqsRequirement as DocReqsRequirement, type RequirementRetrieveResponse as RequirementRetrieveResponse, type DocReqsRequirementsDefaultFlatPagination as DocReqsRequirementsDefaultFlatPagination, type RequirementListParams as RequirementListParams, type RequirementRetrieveParams as RequirementRetrieveParams, };
|
|
113
138
|
}
|
|
114
139
|
//# sourceMappingURL=requirements.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requirements.d.mts","sourceRoot":"","sources":["../src/resources/requirements.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,KAAK,MAAM,qBAAiB;AACnC,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,qBAAqB,EAAE,KAAK,2BAA2B,EAAE,WAAW,EAAE,+BAA2B;AAC1G,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,qBAAqB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,wCAAwC,EAAE,kBAAkB,CAAC;IAO5E;;;;;;;;;OASG;IACH,QAAQ,
|
|
1
|
+
{"version":3,"file":"requirements.d.mts","sourceRoot":"","sources":["../src/resources/requirements.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,KAAK,MAAM,qBAAiB;AACnC,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,qBAAqB,EAAE,KAAK,2BAA2B,EAAE,WAAW,EAAE,+BAA2B;AAC1G,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,qBAAqB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,wCAAwC,EAAE,kBAAkB,CAAC;IAO5E;;;;;;;;;OASG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,yBAAyB,GAAG,IAAI,GAAG,SAAc,EACxD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,2BAA2B,CAAC;CAG3C;AAED,MAAM,MAA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;IACH,UAAiB,MAAM;QACrB;;WAEG;QACH,MAAM,CAAC,EAAE,iBAAiB,GAAG,UAAU,GAAG,SAAS,CAAC;QAEpD;;;WAGG;QACH,YAAY,CAAC,EAAE,MAAM,CAAC;QAEtB;;WAEG;QACH,iBAAiB,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,WAAW,CAAC;KACxD;CACF;AAED,MAAM,WAAW,yBAAyB;IACxC;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,wCAAwC,IAAI,wCAAwC,EACzF,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -29,7 +29,7 @@ export declare class Requirements extends APIResource {
|
|
|
29
29
|
* );
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<RequirementRetrieveResponse>;
|
|
32
|
+
retrieve(id: string, query?: RequirementRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<RequirementRetrieveResponse>;
|
|
33
33
|
}
|
|
34
34
|
export type DocReqsRequirementsDefaultFlatPagination = DefaultFlatPagination<DocReqsRequirement>;
|
|
35
35
|
export interface DocReqsRequirement {
|
|
@@ -50,6 +50,15 @@ export interface DocReqsRequirement {
|
|
|
50
50
|
* ISO 8601 formatted date-time indicating when the resource was created.
|
|
51
51
|
*/
|
|
52
52
|
created_at?: string;
|
|
53
|
+
/**
|
|
54
|
+
* When this version was superseded. NULL means this is the active or pending
|
|
55
|
+
* version.
|
|
56
|
+
*/
|
|
57
|
+
effective_end_at?: string | null;
|
|
58
|
+
/**
|
|
59
|
+
* When this version became (or will become) active.
|
|
60
|
+
*/
|
|
61
|
+
effective_start_at?: string | null;
|
|
53
62
|
/**
|
|
54
63
|
* The locality where this requirement applies
|
|
55
64
|
*/
|
|
@@ -66,11 +75,15 @@ export interface DocReqsRequirement {
|
|
|
66
75
|
/**
|
|
67
76
|
* Lists the requirement types necessary to fulfill this requirement
|
|
68
77
|
*/
|
|
69
|
-
|
|
78
|
+
requirement_types?: Array<Shared.DocReqsRequirementType>;
|
|
70
79
|
/**
|
|
71
80
|
* ISO 8601 formatted date-time indicating when the resource was last updated.
|
|
72
81
|
*/
|
|
73
82
|
updated_at?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Version number. Increments with each new version. Defaults to 1.
|
|
85
|
+
*/
|
|
86
|
+
version?: number;
|
|
74
87
|
}
|
|
75
88
|
export interface RequirementRetrieveResponse {
|
|
76
89
|
data?: DocReqsRequirement;
|
|
@@ -86,6 +99,11 @@ export interface RequirementListParams extends DefaultFlatPaginationParams {
|
|
|
86
99
|
* sort[]
|
|
87
100
|
*/
|
|
88
101
|
sort?: Array<'created_at' | 'updated_at' | 'country_code' | 'phone_number_type' | '-created_at' | '-updated_at' | '-country_code' | '-phone_number_type'>;
|
|
102
|
+
/**
|
|
103
|
+
* Filter by requirement version number. When omitted, returns the currently-active
|
|
104
|
+
* version.
|
|
105
|
+
*/
|
|
106
|
+
version?: number;
|
|
89
107
|
}
|
|
90
108
|
export declare namespace RequirementListParams {
|
|
91
109
|
/**
|
|
@@ -108,7 +126,14 @@ export declare namespace RequirementListParams {
|
|
|
108
126
|
phone_number_type?: 'local' | 'national' | 'toll_free';
|
|
109
127
|
}
|
|
110
128
|
}
|
|
129
|
+
export interface RequirementRetrieveParams {
|
|
130
|
+
/**
|
|
131
|
+
* Filter by requirement version number. When omitted, returns the currently-active
|
|
132
|
+
* version.
|
|
133
|
+
*/
|
|
134
|
+
version?: number;
|
|
135
|
+
}
|
|
111
136
|
export declare namespace Requirements {
|
|
112
|
-
export { type DocReqsRequirement as DocReqsRequirement, type RequirementRetrieveResponse as RequirementRetrieveResponse, type DocReqsRequirementsDefaultFlatPagination as DocReqsRequirementsDefaultFlatPagination, type RequirementListParams as RequirementListParams, };
|
|
137
|
+
export { type DocReqsRequirement as DocReqsRequirement, type RequirementRetrieveResponse as RequirementRetrieveResponse, type DocReqsRequirementsDefaultFlatPagination as DocReqsRequirementsDefaultFlatPagination, type RequirementListParams as RequirementListParams, type RequirementRetrieveParams as RequirementRetrieveParams, };
|
|
113
138
|
}
|
|
114
139
|
//# sourceMappingURL=requirements.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requirements.d.ts","sourceRoot":"","sources":["../src/resources/requirements.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,MAAM,oBAAiB;AACnC,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,qBAAqB,EAAE,KAAK,2BAA2B,EAAE,WAAW,EAAE,8BAA2B;AAC1G,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,qBAAqB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,wCAAwC,EAAE,kBAAkB,CAAC;IAO5E;;;;;;;;;OASG;IACH,QAAQ,
|
|
1
|
+
{"version":3,"file":"requirements.d.ts","sourceRoot":"","sources":["../src/resources/requirements.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,MAAM,oBAAiB;AACnC,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,qBAAqB,EAAE,KAAK,2BAA2B,EAAE,WAAW,EAAE,8BAA2B;AAC1G,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;O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AsB,SAAQ,2BAA2B;IACxE;;;OAGG;IACH,MAAM,CAAC,EAAE,qBAAqB,CAAC,MAAM,CAAC;IAEtC;;;OAGG;IACH,IAAI,CAAC,EAAE,KAAK,CACR,YAAY,GACZ,YAAY,GACZ,cAAc,GACd,mBAAmB,GACnB,aAAa,GACb,aAAa,GACb,eAAe,GACf,oBAAoB,CACvB,CAAC;IAEF;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,yBAAiB,qBAAqB,CAAC;IACrC;;;OAGG;IACH,UAAiB,MAAM;QACrB;;WAEG;QACH,MAAM,CAAC,EAAE,iBAAiB,GAAG,UAAU,GAAG,SAAS,CAAC;QAEpD;;;WAGG;QACH,YAAY,CAAC,EAAE,MAAM,CAAC;QAEtB;;WAEG;QACH,iBAAiB,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,WAAW,CAAC;KACxD;CACF;AAED,MAAM,WAAW,yBAAyB;IACxC;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,wCAAwC,IAAI,wCAAwC,EACzF,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -36,8 +36,8 @@ class Requirements extends resource_1.APIResource {
|
|
|
36
36
|
* );
|
|
37
37
|
* ```
|
|
38
38
|
*/
|
|
39
|
-
retrieve(id, options) {
|
|
40
|
-
return this._client.get((0, path_1.path) `/requirements/${id}`, options);
|
|
39
|
+
retrieve(id, query = {}, options) {
|
|
40
|
+
return this._client.get((0, path_1.path) `/requirements/${id}`, { query, ...options });
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
exports.Requirements = Requirements;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requirements.js","sourceRoot":"","sources":["../src/resources/requirements.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAA0G;AAE1G,oDAA8C;AAE9C;;GAEG;AACH,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAkD,EAAE,EACpD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,eAAe,EAAE,CAAA,kCAAyC,CAAA,EAAE;YACzF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,
|
|
1
|
+
{"version":3,"file":"requirements.js","sourceRoot":"","sources":["../src/resources/requirements.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAA0G;AAE1G,oDAA8C;AAE9C;;GAEG;AACH,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAkD,EAAE,EACpD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,eAAe,EAAE,CAAA,kCAAyC,CAAA,EAAE;YACzF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CACN,EAAU,EACV,QAAsD,EAAE,EACxD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,iBAAiB,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF;AAvCD,oCAuCC"}
|
|
@@ -33,8 +33,8 @@ export class Requirements extends APIResource {
|
|
|
33
33
|
* );
|
|
34
34
|
* ```
|
|
35
35
|
*/
|
|
36
|
-
retrieve(id, options) {
|
|
37
|
-
return this._client.get(path `/requirements/${id}`, options);
|
|
36
|
+
retrieve(id, query = {}, options) {
|
|
37
|
+
return this._client.get(path `/requirements/${id}`, { query, ...options });
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
//# sourceMappingURL=requirements.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requirements.mjs","sourceRoot":"","sources":["../src/resources/requirements.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,qBAAqB,EAAiD,+BAA2B;AAE1G,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAkD,EAAE,EACpD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,eAAe,EAAE,CAAA,qBAAyC,CAAA,EAAE;YACzF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,
|
|
1
|
+
{"version":3,"file":"requirements.mjs","sourceRoot":"","sources":["../src/resources/requirements.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,qBAAqB,EAAiD,+BAA2B;AAE1G,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAkD,EAAE,EACpD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,eAAe,EAAE,CAAA,qBAAyC,CAAA,EAAE;YACzF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CACN,EAAU,EACV,QAAsD,EAAE,EACxD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,iBAAiB,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF"}
|
|
@@ -209,7 +209,7 @@ export interface SpeechToTextRetrieveTranscriptionParams {
|
|
|
209
209
|
/**
|
|
210
210
|
* The specific model to use within the selected transcription engine.
|
|
211
211
|
*/
|
|
212
|
-
model?: 'fast' | 'deepgram/nova-2' | 'deepgram/nova-3' | 'latest_long' | 'latest_short' | 'command_and_search' | 'phone_call' | 'video' | 'default' | 'medical_conversation' | 'medical_dictation' | 'openai/whisper-tiny' | 'openai/whisper-large-v3-turbo' | 'xai/grok-stt' | 'speechmatics/standard' | 'soniox/stt-rt-v4' | 'parakeet
|
|
212
|
+
model?: 'fast' | 'deepgram/nova-2' | 'deepgram/nova-3' | 'latest_long' | 'latest_short' | 'command_and_search' | 'phone_call' | 'video' | 'default' | 'medical_conversation' | 'medical_dictation' | 'openai/whisper-tiny' | 'openai/whisper-large-v3-turbo' | 'xai/grok-stt' | 'speechmatics/standard' | 'soniox/stt-rt-v4' | 'nvidia/parakeet-v3';
|
|
213
213
|
/**
|
|
214
214
|
* Enable redaction of sensitive information (e.g., PCI data, SSN) from
|
|
215
215
|
* transcription results. Supported values depend on the transcription engine.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"speech-to-text.d.mts","sourceRoot":"","sources":["../../src/resources/speech-to-text/speech-to-text.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,eAAe,6BAAyB;AACpD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,KAAK,UAAU,EAAE,+BAA2B;AAErD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAEhE,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;;;;;;OAiBG;IACH,aAAa,CACX,KAAK,GAAE,+BAA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,MAAM,CAAC;IAEjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,KAAK,CAAC,EACF,MAAM,GACN,iBAAiB,GACjB,iBAAiB,GACjB,aAAa,GACb,cAAc,GACd,oBAAoB,GACpB,YAAY,GACZ,OAAO,GACP,SAAS,GACT,sBAAsB,GACtB,mBAAmB,GACnB,qBAAqB,GACrB,+BAA+B,GAC/B,cAAc,GACd,uBAAuB,GACvB,kBAAkB,GAClB,oBAAoB,CAAC;IAEzB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,uCAAuC,IAAI,uCAAuC,GACxF,CAAC;CACH"}
|
|
@@ -209,7 +209,7 @@ export interface SpeechToTextRetrieveTranscriptionParams {
|
|
|
209
209
|
/**
|
|
210
210
|
* The specific model to use within the selected transcription engine.
|
|
211
211
|
*/
|
|
212
|
-
model?: 'fast' | 'deepgram/nova-2' | 'deepgram/nova-3' | 'latest_long' | 'latest_short' | 'command_and_search' | 'phone_call' | 'video' | 'default' | 'medical_conversation' | 'medical_dictation' | 'openai/whisper-tiny' | 'openai/whisper-large-v3-turbo' | 'xai/grok-stt' | 'speechmatics/standard' | 'soniox/stt-rt-v4' | 'parakeet
|
|
212
|
+
model?: 'fast' | 'deepgram/nova-2' | 'deepgram/nova-3' | 'latest_long' | 'latest_short' | 'command_and_search' | 'phone_call' | 'video' | 'default' | 'medical_conversation' | 'medical_dictation' | 'openai/whisper-tiny' | 'openai/whisper-large-v3-turbo' | 'xai/grok-stt' | 'speechmatics/standard' | 'soniox/stt-rt-v4' | 'nvidia/parakeet-v3';
|
|
213
213
|
/**
|
|
214
214
|
* Enable redaction of sensitive information (e.g., PCI data, SSN) from
|
|
215
215
|
* transcription results. Supported values depend on the transcription engine.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"speech-to-text.d.ts","sourceRoot":"","sources":["../../src/resources/speech-to-text/speech-to-text.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,eAAe,4BAAyB;AACpD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,KAAK,UAAU,EAAE,8BAA2B;AAErD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAEhE,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;;;;;;OAiBG;IACH,aAAa,CACX,KAAK,GAAE,+BAA+B,GAAG,IAAI,GAAG,SAAc,EAC9D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iCAAiC,CAAC;IAQhD;;;;;;;;;;;;;;;;OAgBG;IACH,qBAAqB,CACnB,KAAK,EAAE,uCAAuC,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;CAWpB;AAED;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG,YAAY,GAAG,SAAS,GAAG,cAAc,CAAC;AAErF;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAChD,IAAI,EAAE,KAAK,CAAC,iCAAiC,CAAC,IAAI,CAAC,CAAC;IAEpD,IAAI,EAAE,iCAAiC,CAAC,IAAI,CAAC;CAC9C;AAED,yBAAiB,iCAAiC,CAAC;IACjD;;;OAGG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;;;WAIG;QACH,aAAa,EAAE,KAAK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AAQ,GACR,KAAK,GACL,cAAc,GACd,QAAQ,GACR,UAAU,CAAC;IAEf;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,KAAK,CAAC,EACF,MAAM,GACN,iBAAiB,GACjB,iBAAiB,GACjB,aAAa,GACb,cAAc,GACd,oBAAoB,GACpB,YAAY,GACZ,OAAO,GACP,SAAS,GACT,sBAAsB,GACtB,mBAAmB,GACnB,qBAAqB,GACrB,+BAA+B,GAC/B,cAAc,GACd,uBAAuB,GACvB,kBAAkB,GAClB,
|
|
1
|
+
{"version":3,"file":"speech-to-text.d.ts","sourceRoot":"","sources":["../../src/resources/speech-to-text/speech-to-text.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,eAAe,4BAAyB;AACpD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,KAAK,UAAU,EAAE,8BAA2B;AAErD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAEhE,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;;;;;;OAiBG;IACH,aAAa,CACX,KAAK,GAAE,+BAA+B,GAAG,IAAI,GAAG,SAAc,EAC9D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iCAAiC,CAAC;IAQhD;;;;;;;;;;;;;;;;OAgBG;IACH,qBAAqB,CACnB,KAAK,EAAE,uCAAuC,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;CAWpB;AAED;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG,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uCAAuC,IAAI,uCAAuC,GACxF,CAAC;CACH"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import * as CloudfsAPI from "./cloudfs.mjs";
|
|
3
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
4
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Manage CloudFS filesystems — JuiceFS-compatible filesystems backed by Telnyx Cloud Storage
|
|
7
|
+
*/
|
|
8
|
+
export declare class Actions extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Issues a new metadata access token for the filesystem and returns the full
|
|
11
|
+
* filesystem, including the new `meta_token` and credential-bearing `meta_url`.
|
|
12
|
+
* The previous token stops authenticating immediately; the metadata database and
|
|
13
|
+
* S3 bucket are unchanged. The request takes no body. Allowed while the filesystem
|
|
14
|
+
* is `ready` or `needs_format`; otherwise returns a `409`. Retrying with the same
|
|
15
|
+
* `Idempotency-Key` within 24 hours replays the original response — including the
|
|
16
|
+
* same token — instead of rotating again.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* const cloudfsFilesystemResponseWrapper =
|
|
21
|
+
* await client.storage.cloudfs.actions.rotateMetaToken(
|
|
22
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
23
|
+
* { 'Idempotency-Key': 'Idempotency-Key' },
|
|
24
|
+
* );
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
rotateMetaToken(id: string, params: ActionRotateMetaTokenParams, options?: RequestOptions): APIPromise<CloudfsAPI.CloudfsFilesystemResponseWrapper>;
|
|
28
|
+
}
|
|
29
|
+
export interface ActionRotateMetaTokenParams {
|
|
30
|
+
/**
|
|
31
|
+
* Unique key that makes the request idempotent (1-255 characters: letters,
|
|
32
|
+
* numbers, `_`, and `-`). Retrying with the same key within 24 hours replays the
|
|
33
|
+
* original response (marked with an `Idempotent-Replayed: true` header) instead of
|
|
34
|
+
* repeating the action. Reusing a key with a different request returns a `422`;
|
|
35
|
+
* sending a key while the original request is still being processed returns a
|
|
36
|
+
* `409`.
|
|
37
|
+
*/
|
|
38
|
+
'Idempotency-Key': string;
|
|
39
|
+
}
|
|
40
|
+
export declare namespace Actions {
|
|
41
|
+
export { type ActionRotateMetaTokenParams as ActionRotateMetaTokenParams };
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=actions.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.d.mts","sourceRoot":"","sources":["../../../src/resources/storage/cloudfs/actions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EAAE,UAAU,EAAE,sCAAkC;AAEvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;;;OAiBG;IACH,eAAe,CACb,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,2BAA2B,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,UAAU,CAAC,gCAAgC,CAAC;CAO3D;AAED,MAAM,WAAW,2BAA2B;IAC1C;;;;;;;OAOG;IACH,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EAAE,KAAK,2BAA2B,IAAI,2BAA2B,EAAE,CAAC;CAC5E"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import * as CloudfsAPI from "./cloudfs.js";
|
|
3
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
4
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
5
|
+
/**
|
|
6
|
+
* Manage CloudFS filesystems — JuiceFS-compatible filesystems backed by Telnyx Cloud Storage
|
|
7
|
+
*/
|
|
8
|
+
export declare class Actions extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Issues a new metadata access token for the filesystem and returns the full
|
|
11
|
+
* filesystem, including the new `meta_token` and credential-bearing `meta_url`.
|
|
12
|
+
* The previous token stops authenticating immediately; the metadata database and
|
|
13
|
+
* S3 bucket are unchanged. The request takes no body. Allowed while the filesystem
|
|
14
|
+
* is `ready` or `needs_format`; otherwise returns a `409`. Retrying with the same
|
|
15
|
+
* `Idempotency-Key` within 24 hours replays the original response — including the
|
|
16
|
+
* same token — instead of rotating again.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* const cloudfsFilesystemResponseWrapper =
|
|
21
|
+
* await client.storage.cloudfs.actions.rotateMetaToken(
|
|
22
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
23
|
+
* { 'Idempotency-Key': 'Idempotency-Key' },
|
|
24
|
+
* );
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
rotateMetaToken(id: string, params: ActionRotateMetaTokenParams, options?: RequestOptions): APIPromise<CloudfsAPI.CloudfsFilesystemResponseWrapper>;
|
|
28
|
+
}
|
|
29
|
+
export interface ActionRotateMetaTokenParams {
|
|
30
|
+
/**
|
|
31
|
+
* Unique key that makes the request idempotent (1-255 characters: letters,
|
|
32
|
+
* numbers, `_`, and `-`). Retrying with the same key within 24 hours replays the
|
|
33
|
+
* original response (marked with an `Idempotent-Replayed: true` header) instead of
|
|
34
|
+
* repeating the action. Reusing a key with a different request returns a `422`;
|
|
35
|
+
* sending a key while the original request is still being processed returns a
|
|
36
|
+
* `409`.
|
|
37
|
+
*/
|
|
38
|
+
'Idempotency-Key': string;
|
|
39
|
+
}
|
|
40
|
+
export declare namespace Actions {
|
|
41
|
+
export { type ActionRotateMetaTokenParams as ActionRotateMetaTokenParams };
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/resources/storage/cloudfs/actions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,UAAU,qBAAkB;AACxC,OAAO,EAAE,UAAU,EAAE,qCAAkC;AAEvD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;;;OAiBG;IACH,eAAe,CACb,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,2BAA2B,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,UAAU,CAAC,gCAAgC,CAAC;CAO3D;AAED,MAAM,WAAW,2BAA2B;IAC1C;;;;;;;OAOG;IACH,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EAAE,KAAK,2BAA2B,IAAI,2BAA2B,EAAE,CAAC;CAC5E"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Actions = void 0;
|
|
5
|
+
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
const headers_1 = require("../../../internal/headers.js");
|
|
7
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
8
|
+
/**
|
|
9
|
+
* Manage CloudFS filesystems — JuiceFS-compatible filesystems backed by Telnyx Cloud Storage
|
|
10
|
+
*/
|
|
11
|
+
class Actions extends resource_1.APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Issues a new metadata access token for the filesystem and returns the full
|
|
14
|
+
* filesystem, including the new `meta_token` and credential-bearing `meta_url`.
|
|
15
|
+
* The previous token stops authenticating immediately; the metadata database and
|
|
16
|
+
* S3 bucket are unchanged. The request takes no body. Allowed while the filesystem
|
|
17
|
+
* is `ready` or `needs_format`; otherwise returns a `409`. Retrying with the same
|
|
18
|
+
* `Idempotency-Key` within 24 hours replays the original response — including the
|
|
19
|
+
* same token — instead of rotating again.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const cloudfsFilesystemResponseWrapper =
|
|
24
|
+
* await client.storage.cloudfs.actions.rotateMetaToken(
|
|
25
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
26
|
+
* { 'Idempotency-Key': 'Idempotency-Key' },
|
|
27
|
+
* );
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
rotateMetaToken(id, params, options) {
|
|
31
|
+
const { 'Idempotency-Key': idempotencyKey } = params;
|
|
32
|
+
return this._client.post((0, path_1.path) `/storage/cloudfs/${id}/actions/rotate-meta-token`, {
|
|
33
|
+
...options,
|
|
34
|
+
headers: (0, headers_1.buildHeaders)([{ 'Idempotency-Key': idempotencyKey }, options?.headers]),
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.Actions = Actions;
|
|
39
|
+
//# sourceMappingURL=actions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.js","sourceRoot":"","sources":["../../../src/resources/storage/cloudfs/actions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAyD;AAEzD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;;;;;;;;;OAiBG;IACH,eAAe,CACb,EAAU,EACV,MAAmC,EACnC,OAAwB;QAExB,MAAM,EAAE,iBAAiB,EAAE,cAAc,EAAE,GAAG,MAAM,CAAC;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,4BAA4B,EAAE;YAC/E,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,iBAAiB,EAAE,cAAc,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SACjF,CAAC,CAAC;IACL,CAAC;CACF;AA9BD,0BA8BC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
4
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Manage CloudFS filesystems — JuiceFS-compatible filesystems backed by Telnyx Cloud Storage
|
|
7
|
+
*/
|
|
8
|
+
export class Actions extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Issues a new metadata access token for the filesystem and returns the full
|
|
11
|
+
* filesystem, including the new `meta_token` and credential-bearing `meta_url`.
|
|
12
|
+
* The previous token stops authenticating immediately; the metadata database and
|
|
13
|
+
* S3 bucket are unchanged. The request takes no body. Allowed while the filesystem
|
|
14
|
+
* is `ready` or `needs_format`; otherwise returns a `409`. Retrying with the same
|
|
15
|
+
* `Idempotency-Key` within 24 hours replays the original response — including the
|
|
16
|
+
* same token — instead of rotating again.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* const cloudfsFilesystemResponseWrapper =
|
|
21
|
+
* await client.storage.cloudfs.actions.rotateMetaToken(
|
|
22
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
23
|
+
* { 'Idempotency-Key': 'Idempotency-Key' },
|
|
24
|
+
* );
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
rotateMetaToken(id, params, options) {
|
|
28
|
+
const { 'Idempotency-Key': idempotencyKey } = params;
|
|
29
|
+
return this._client.post(path `/storage/cloudfs/${id}/actions/rotate-meta-token`, {
|
|
30
|
+
...options,
|
|
31
|
+
headers: buildHeaders([{ 'Idempotency-Key': idempotencyKey }, options?.headers]),
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=actions.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.mjs","sourceRoot":"","sources":["../../../src/resources/storage/cloudfs/actions.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAGrD,OAAO,EAAE,YAAY,EAAE,sCAAkC;AAEzD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;;;OAiBG;IACH,eAAe,CACb,EAAU,EACV,MAAmC,EACnC,OAAwB;QAExB,MAAM,EAAE,iBAAiB,EAAE,cAAc,EAAE,GAAG,MAAM,CAAC;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,oBAAoB,EAAE,4BAA4B,EAAE;YAC/E,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,iBAAiB,EAAE,cAAc,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SACjF,CAAC,CAAC;IACL,CAAC;CACF"}
|