@studyfetch/sdk 1.23.0 → 1.24.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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.24.0 (2025-07-21)
4
+
5
+ Full Changelog: [v1.23.0...v1.24.0](https://github.com/GoStudyFetchGo/studyfetch-sdk/compare/v1.23.0...v1.24.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** manual updates ([09b0dfc](https://github.com/GoStudyFetchGo/studyfetch-sdk/commit/09b0dfc4d822945ba7b249be4f94a987bbf90c6a))
10
+
3
11
  ## 1.23.0 (2025-07-21)
4
12
 
5
13
  Full Changelog: [v1.22.0...v1.23.0](https://github.com/GoStudyFetchGo/studyfetch-sdk/compare/v1.22.0...v1.23.0)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studyfetch/sdk",
3
- "version": "1.23.0",
3
+ "version": "1.24.0",
4
4
  "description": "The official TypeScript library for the Studyfetch SDK API",
5
5
  "author": "Studyfetch SDK <support@studyfetch.com>",
6
6
  "types": "./index.d.ts",
@@ -44,7 +44,7 @@ export declare class Component extends APIResource {
44
44
  *
45
45
  * @example
46
46
  * ```ts
47
- * const response =
47
+ * const fileUploadResponse =
48
48
  * await client.v1.upload.component.uploadFile(
49
49
  * 'componentId',
50
50
  * {
@@ -55,50 +55,27 @@ export declare class Component extends APIResource {
55
55
  * );
56
56
  * ```
57
57
  */
58
- uploadFile(componentID: string, body: ComponentUploadFileParams, options?: RequestOptions): APIPromise<ComponentUploadFileResponse>;
58
+ uploadFile(componentID: string, body: ComponentUploadFileParams, options?: RequestOptions): APIPromise<FileUploadResponse>;
59
59
  /**
60
60
  * Upload a file from URL to a component
61
61
  *
62
62
  * @example
63
63
  * ```ts
64
- * const response = await client.v1.upload.component.uploadURL(
65
- * 'componentId',
66
- * {
67
- * folderId: '507f1f77bcf86cd799439012',
68
- * name: 'my-document.pdf',
69
- * organizationId: '507f1f77bcf86cd799439011',
70
- * url: 'https://example.com/document.pdf',
71
- * },
72
- * );
64
+ * const fileUploadResponse =
65
+ * await client.v1.upload.component.uploadURL(
66
+ * 'componentId',
67
+ * {
68
+ * folderId: '507f1f77bcf86cd799439012',
69
+ * name: 'my-document.pdf',
70
+ * organizationId: '507f1f77bcf86cd799439011',
71
+ * url: 'https://example.com/document.pdf',
72
+ * },
73
+ * );
73
74
  * ```
74
75
  */
75
- uploadURL(componentID: string, body: ComponentUploadURLParams, options?: RequestOptions): APIPromise<ComponentUploadURLResponse>;
76
- }
77
- export interface ComponentCompleteUploadResponse {
78
- /**
79
- * The ID of the uploaded material
80
- */
81
- id: string;
82
- /**
83
- * The name of the material
84
- */
85
- name: string;
86
- /**
87
- * The status of the material
88
- */
89
- status: string;
90
- }
91
- export interface ComponentGetPresignedURLResponse {
92
- /**
93
- * The S3 key for the file
94
- */
95
- key: string;
96
- /**
97
- * The presigned URL for uploading
98
- */
99
- uploadUrl: string;
76
+ uploadURL(componentID: string, body: ComponentUploadURLParams, options?: RequestOptions): APIPromise<FileUploadResponse>;
100
77
  }
101
- export interface ComponentUploadFileResponse {
78
+ export interface FileUploadResponse {
102
79
  /**
103
80
  * The ID of the uploaded material
104
81
  */
@@ -120,28 +97,30 @@ export interface ComponentUploadFileResponse {
120
97
  */
121
98
  status: string;
122
99
  }
123
- export interface ComponentUploadURLResponse {
100
+ export interface ComponentCompleteUploadResponse {
124
101
  /**
125
102
  * The ID of the uploaded material
126
103
  */
127
104
  id: string;
128
- /**
129
- * The content type of the material
130
- */
131
- contentType: string;
132
105
  /**
133
106
  * The name of the material
134
107
  */
135
108
  name: string;
136
- /**
137
- * The S3 key of the uploaded file
138
- */
139
- s3Key: string;
140
109
  /**
141
110
  * The status of the material
142
111
  */
143
112
  status: string;
144
113
  }
114
+ export interface ComponentGetPresignedURLResponse {
115
+ /**
116
+ * The S3 key for the file
117
+ */
118
+ key: string;
119
+ /**
120
+ * The presigned URL for uploading
121
+ */
122
+ uploadUrl: string;
123
+ }
145
124
  export interface ComponentCompleteUploadParams {
146
125
  /**
147
126
  * The ID of the material that was uploaded
@@ -207,6 +186,6 @@ export interface ComponentUploadURLParams {
207
186
  url: string;
208
187
  }
209
188
  export declare namespace Component {
210
- export { type ComponentCompleteUploadResponse as ComponentCompleteUploadResponse, type ComponentGetPresignedURLResponse as ComponentGetPresignedURLResponse, type ComponentUploadFileResponse as ComponentUploadFileResponse, type ComponentUploadURLResponse as ComponentUploadURLResponse, type ComponentCompleteUploadParams as ComponentCompleteUploadParams, type ComponentGetPresignedURLParams as ComponentGetPresignedURLParams, type ComponentUploadFileParams as ComponentUploadFileParams, type ComponentUploadURLParams as ComponentUploadURLParams, };
189
+ export { type FileUploadResponse as FileUploadResponse, type ComponentCompleteUploadResponse as ComponentCompleteUploadResponse, type ComponentGetPresignedURLResponse as ComponentGetPresignedURLResponse, type ComponentCompleteUploadParams as ComponentCompleteUploadParams, type ComponentGetPresignedURLParams as ComponentGetPresignedURLParams, type ComponentUploadFileParams as ComponentUploadFileParams, type ComponentUploadURLParams as ComponentUploadURLParams, };
211
190
  }
212
191
  //# sourceMappingURL=component.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"component.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/upload/component.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,KAAK,UAAU,EAAE;OACnB,EAAE,cAAc,EAAE;AAIzB,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;;;;;OAgBG;IACH,cAAc,CACZ,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,6BAA6B,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,+BAA+B,CAAC;IAI9C;;;;;;;;;;;;;;;;OAgBG;IACH,eAAe,CACb,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,8BAA8B,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Ac,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;IAEjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
1
+ {"version":3,"file":"component.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/upload/component.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,KAAK,UAAU,EAAE;OACnB,EAAE,cAAc,EAAE;AAIzB,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;;;;;O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C;IAEvB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;IAEjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
@@ -44,7 +44,7 @@ export declare class Component extends APIResource {
44
44
  *
45
45
  * @example
46
46
  * ```ts
47
- * const response =
47
+ * const fileUploadResponse =
48
48
  * await client.v1.upload.component.uploadFile(
49
49
  * 'componentId',
50
50
  * {
@@ -55,50 +55,27 @@ export declare class Component extends APIResource {
55
55
  * );
56
56
  * ```
57
57
  */
58
- uploadFile(componentID: string, body: ComponentUploadFileParams, options?: RequestOptions): APIPromise<ComponentUploadFileResponse>;
58
+ uploadFile(componentID: string, body: ComponentUploadFileParams, options?: RequestOptions): APIPromise<FileUploadResponse>;
59
59
  /**
60
60
  * Upload a file from URL to a component
61
61
  *
62
62
  * @example
63
63
  * ```ts
64
- * const response = await client.v1.upload.component.uploadURL(
65
- * 'componentId',
66
- * {
67
- * folderId: '507f1f77bcf86cd799439012',
68
- * name: 'my-document.pdf',
69
- * organizationId: '507f1f77bcf86cd799439011',
70
- * url: 'https://example.com/document.pdf',
71
- * },
72
- * );
64
+ * const fileUploadResponse =
65
+ * await client.v1.upload.component.uploadURL(
66
+ * 'componentId',
67
+ * {
68
+ * folderId: '507f1f77bcf86cd799439012',
69
+ * name: 'my-document.pdf',
70
+ * organizationId: '507f1f77bcf86cd799439011',
71
+ * url: 'https://example.com/document.pdf',
72
+ * },
73
+ * );
73
74
  * ```
74
75
  */
75
- uploadURL(componentID: string, body: ComponentUploadURLParams, options?: RequestOptions): APIPromise<ComponentUploadURLResponse>;
76
- }
77
- export interface ComponentCompleteUploadResponse {
78
- /**
79
- * The ID of the uploaded material
80
- */
81
- id: string;
82
- /**
83
- * The name of the material
84
- */
85
- name: string;
86
- /**
87
- * The status of the material
88
- */
89
- status: string;
90
- }
91
- export interface ComponentGetPresignedURLResponse {
92
- /**
93
- * The S3 key for the file
94
- */
95
- key: string;
96
- /**
97
- * The presigned URL for uploading
98
- */
99
- uploadUrl: string;
76
+ uploadURL(componentID: string, body: ComponentUploadURLParams, options?: RequestOptions): APIPromise<FileUploadResponse>;
100
77
  }
101
- export interface ComponentUploadFileResponse {
78
+ export interface FileUploadResponse {
102
79
  /**
103
80
  * The ID of the uploaded material
104
81
  */
@@ -120,28 +97,30 @@ export interface ComponentUploadFileResponse {
120
97
  */
121
98
  status: string;
122
99
  }
123
- export interface ComponentUploadURLResponse {
100
+ export interface ComponentCompleteUploadResponse {
124
101
  /**
125
102
  * The ID of the uploaded material
126
103
  */
127
104
  id: string;
128
- /**
129
- * The content type of the material
130
- */
131
- contentType: string;
132
105
  /**
133
106
  * The name of the material
134
107
  */
135
108
  name: string;
136
- /**
137
- * The S3 key of the uploaded file
138
- */
139
- s3Key: string;
140
109
  /**
141
110
  * The status of the material
142
111
  */
143
112
  status: string;
144
113
  }
114
+ export interface ComponentGetPresignedURLResponse {
115
+ /**
116
+ * The S3 key for the file
117
+ */
118
+ key: string;
119
+ /**
120
+ * The presigned URL for uploading
121
+ */
122
+ uploadUrl: string;
123
+ }
145
124
  export interface ComponentCompleteUploadParams {
146
125
  /**
147
126
  * The ID of the material that was uploaded
@@ -207,6 +186,6 @@ export interface ComponentUploadURLParams {
207
186
  url: string;
208
187
  }
209
188
  export declare namespace Component {
210
- export { type ComponentCompleteUploadResponse as ComponentCompleteUploadResponse, type ComponentGetPresignedURLResponse as ComponentGetPresignedURLResponse, type ComponentUploadFileResponse as ComponentUploadFileResponse, type ComponentUploadURLResponse as ComponentUploadURLResponse, type ComponentCompleteUploadParams as ComponentCompleteUploadParams, type ComponentGetPresignedURLParams as ComponentGetPresignedURLParams, type ComponentUploadFileParams as ComponentUploadFileParams, type ComponentUploadURLParams as ComponentUploadURLParams, };
189
+ export { type FileUploadResponse as FileUploadResponse, type ComponentCompleteUploadResponse as ComponentCompleteUploadResponse, type ComponentGetPresignedURLResponse as ComponentGetPresignedURLResponse, type ComponentCompleteUploadParams as ComponentCompleteUploadParams, type ComponentGetPresignedURLParams as ComponentGetPresignedURLParams, type ComponentUploadFileParams as ComponentUploadFileParams, type ComponentUploadURLParams as ComponentUploadURLParams, };
211
190
  }
212
191
  //# sourceMappingURL=component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/upload/component.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,KAAK,UAAU,EAAE;OACnB,EAAE,cAAc,EAAE;AAIzB,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;;;;;OAgBG;IACH,cAAc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* const fileUploadResponse =
58
58
  * await client.v1.upload.component.uploadFile(
59
59
  * 'componentId',
60
60
  * {
@@ -73,15 +73,16 @@ class Component extends resource_1.APIResource {
73
73
  *
74
74
  * @example
75
75
  * ```ts
76
- * const response = await client.v1.upload.component.uploadURL(
77
- * 'componentId',
78
- * {
79
- * folderId: '507f1f77bcf86cd799439012',
80
- * name: 'my-document.pdf',
81
- * organizationId: '507f1f77bcf86cd799439011',
82
- * url: 'https://example.com/document.pdf',
83
- * },
84
- * );
76
+ * const fileUploadResponse =
77
+ * await client.v1.upload.component.uploadURL(
78
+ * 'componentId',
79
+ * {
80
+ * folderId: '507f1f77bcf86cd799439012',
81
+ * name: 'my-document.pdf',
82
+ * organizationId: '507f1f77bcf86cd799439011',
83
+ * url: 'https://example.com/document.pdf',
84
+ * },
85
+ * );
85
86
  * ```
86
87
  */
87
88
  uploadURL(componentID, body, options) {
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sourceRoot":"","sources":["../../../src/resources/v1/upload/component.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD,0DAAwE;AACxE,0DAAoD;AAEpD,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;;;;;;;;;;;;;OAgBG;IACH,cAAc,CACZ,WAAmB,EACnB,IAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,4BAA4B,WAAW,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzG,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,eAAe,CACb,WAAmB,EACnB,IAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,4BAA4B,WAAW,gBAAgB,EAAE;YACpF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,UAAU,CACR,WAAmB,EACnB,IAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,IAAA,WAAI,EAAA,4BAA4B,WAAW,OAAO,EAClD,IAAA,qCAA2B,EAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAChE,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,SAAS,CACP,WAAmB,EACnB,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,4BAA4B,WAAW,MAAM,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpG,CAAC;CACF;AAxGD,8BAwGC"}
1
+ {"version":3,"file":"component.js","sourceRoot":"","sources":["../../../src/resources/v1/upload/component.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD,0DAAwE;AACxE,0DAAoD;AAEpD,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;;;;;;;;;;;;;OAgBG;IACH,cAAc,CACZ,WAAmB,EACnB,IAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,4BAA4B,WAAW,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzG,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,eAAe,CACb,WAAmB,EACnB,IAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,4BAA4B,WAAW,gBAAgB,EAAE;YACpF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,UAAU,CACR,WAAmB,EACnB,IAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,IAAA,WAAI,EAAA,4BAA4B,WAAW,OAAO,EAClD,IAAA,qCAA2B,EAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAChE,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,SAAS,CACP,WAAmB,EACnB,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,4BAA4B,WAAW,MAAM,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpG,CAAC;CACF;AAzGD,8BAyGC"}
@@ -51,7 +51,7 @@ export class Component extends APIResource {
51
51
  *
52
52
  * @example
53
53
  * ```ts
54
- * const response =
54
+ * const fileUploadResponse =
55
55
  * await client.v1.upload.component.uploadFile(
56
56
  * 'componentId',
57
57
  * {
@@ -70,15 +70,16 @@ export class Component extends APIResource {
70
70
  *
71
71
  * @example
72
72
  * ```ts
73
- * const response = await client.v1.upload.component.uploadURL(
74
- * 'componentId',
75
- * {
76
- * folderId: '507f1f77bcf86cd799439012',
77
- * name: 'my-document.pdf',
78
- * organizationId: '507f1f77bcf86cd799439011',
79
- * url: 'https://example.com/document.pdf',
80
- * },
81
- * );
73
+ * const fileUploadResponse =
74
+ * await client.v1.upload.component.uploadURL(
75
+ * 'componentId',
76
+ * {
77
+ * folderId: '507f1f77bcf86cd799439012',
78
+ * name: 'my-document.pdf',
79
+ * organizationId: '507f1f77bcf86cd799439011',
80
+ * url: 'https://example.com/document.pdf',
81
+ * },
82
+ * );
82
83
  * ```
83
84
  */
84
85
  uploadURL(componentID, body, options) {
@@ -1 +1 @@
1
- {"version":3,"file":"component.mjs","sourceRoot":"","sources":["../../../src/resources/v1/upload/component.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,2BAA2B,EAAE;OAC/B,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;;;;;OAgBG;IACH,cAAc,CACZ,WAAmB,EACnB,IAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,4BAA4B,WAAW,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzG,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,eAAe,CACb,WAAmB,EACnB,IAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,4BAA4B,WAAW,gBAAgB,EAAE;YACpF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,UAAU,CACR,WAAmB,EACnB,IAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,IAAI,CAAA,4BAA4B,WAAW,OAAO,EAClD,2BAA2B,CAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAChE,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,SAAS,CACP,WAAmB,EACnB,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,4BAA4B,WAAW,MAAM,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpG,CAAC;CACF"}
1
+ {"version":3,"file":"component.mjs","sourceRoot":"","sources":["../../../src/resources/v1/upload/component.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,2BAA2B,EAAE;OAC/B,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;;;;;OAgBG;IACH,cAAc,CACZ,WAAmB,EACnB,IAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,4BAA4B,WAAW,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzG,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,eAAe,CACb,WAAmB,EACnB,IAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,4BAA4B,WAAW,gBAAgB,EAAE;YACpF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,UAAU,CACR,WAAmB,EACnB,IAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,IAAI,CAAA,4BAA4B,WAAW,OAAO,EAClD,2BAA2B,CAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAChE,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,SAAS,CACP,WAAmB,EACnB,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,4BAA4B,WAAW,MAAM,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpG,CAAC;CACF"}
@@ -1,3 +1,3 @@
1
- export { Component, type ComponentCompleteUploadResponse, type ComponentGetPresignedURLResponse, type ComponentUploadFileResponse, type ComponentUploadURLResponse, type ComponentCompleteUploadParams, type ComponentGetPresignedURLParams, type ComponentUploadFileParams, type ComponentUploadURLParams, } from "./component.mjs";
1
+ export { Component, type FileUploadResponse, type ComponentCompleteUploadResponse, type ComponentGetPresignedURLResponse, type ComponentCompleteUploadParams, type ComponentGetPresignedURLParams, type ComponentUploadFileParams, type ComponentUploadURLParams, } from "./component.mjs";
2
2
  export { Upload } from "./upload.mjs";
3
3
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/upload/index.ts"],"names":[],"mappings":"OAEO,EACL,SAAS,EACT,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EACrC,KAAK,2BAA2B,EAChC,KAAK,0BAA0B,EAC/B,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EACnC,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,GAC9B;OACM,EAAE,MAAM,EAAE"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/upload/index.ts"],"names":[],"mappings":"OAEO,EACL,SAAS,EACT,KAAK,kBAAkB,EACvB,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EACrC,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EACnC,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,GAC9B;OACM,EAAE,MAAM,EAAE"}
@@ -1,3 +1,3 @@
1
- export { Component, type ComponentCompleteUploadResponse, type ComponentGetPresignedURLResponse, type ComponentUploadFileResponse, type ComponentUploadURLResponse, type ComponentCompleteUploadParams, type ComponentGetPresignedURLParams, type ComponentUploadFileParams, type ComponentUploadURLParams, } from "./component.js";
1
+ export { Component, type FileUploadResponse, type ComponentCompleteUploadResponse, type ComponentGetPresignedURLResponse, type ComponentCompleteUploadParams, type ComponentGetPresignedURLParams, type ComponentUploadFileParams, type ComponentUploadURLParams, } from "./component.js";
2
2
  export { Upload } from "./upload.js";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/upload/index.ts"],"names":[],"mappings":"OAEO,EACL,SAAS,EACT,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EACrC,KAAK,2BAA2B,EAChC,KAAK,0BAA0B,EAC/B,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EACnC,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,GAC9B;OACM,EAAE,MAAM,EAAE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/upload/index.ts"],"names":[],"mappings":"OAEO,EACL,SAAS,EACT,KAAK,kBAAkB,EACvB,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EACrC,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EACnC,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,GAC9B;OACM,EAAE,MAAM,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/upload/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4CAUqB;AATnB,sGAAA,SAAS,OAAA;AAUX,sCAAkC;AAAzB,gGAAA,MAAM,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/upload/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4CASqB;AARnB,sGAAA,SAAS,OAAA;AASX,sCAAkC;AAAzB,gGAAA,MAAM,OAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/upload/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,SAAS,GASV;OACM,EAAE,MAAM,EAAE"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/upload/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,SAAS,GAQV;OACM,EAAE,MAAM,EAAE"}
@@ -1,10 +1,10 @@
1
1
  import { APIResource } from "../../../core/resource.mjs";
2
2
  import * as ComponentAPI from "./component.mjs";
3
- import { Component, ComponentCompleteUploadParams, ComponentCompleteUploadResponse, ComponentGetPresignedURLParams, ComponentGetPresignedURLResponse, ComponentUploadFileParams, ComponentUploadFileResponse, ComponentUploadURLParams, ComponentUploadURLResponse } from "./component.mjs";
3
+ import { Component, ComponentCompleteUploadParams, ComponentCompleteUploadResponse, ComponentGetPresignedURLParams, ComponentGetPresignedURLResponse, ComponentUploadFileParams, ComponentUploadURLParams, FileUploadResponse } from "./component.mjs";
4
4
  export declare class Upload extends APIResource {
5
5
  component: ComponentAPI.Component;
6
6
  }
7
7
  export declare namespace Upload {
8
- export { Component as Component, type ComponentCompleteUploadResponse as ComponentCompleteUploadResponse, type ComponentGetPresignedURLResponse as ComponentGetPresignedURLResponse, type ComponentUploadFileResponse as ComponentUploadFileResponse, type ComponentUploadURLResponse as ComponentUploadURLResponse, type ComponentCompleteUploadParams as ComponentCompleteUploadParams, type ComponentGetPresignedURLParams as ComponentGetPresignedURLParams, type ComponentUploadFileParams as ComponentUploadFileParams, type ComponentUploadURLParams as ComponentUploadURLParams, };
8
+ export { Component as Component, type FileUploadResponse as FileUploadResponse, type ComponentCompleteUploadResponse as ComponentCompleteUploadResponse, type ComponentGetPresignedURLResponse as ComponentGetPresignedURLResponse, type ComponentCompleteUploadParams as ComponentCompleteUploadParams, type ComponentGetPresignedURLParams as ComponentGetPresignedURLParams, type ComponentUploadFileParams as ComponentUploadFileParams, type ComponentUploadURLParams as ComponentUploadURLParams, };
9
9
  }
10
10
  //# sourceMappingURL=upload.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"upload.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/upload/upload.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EACL,SAAS,EACT,6BAA6B,EAC7B,+BAA+B,EAC/B,8BAA8B,EAC9B,gCAAgC,EAChC,yBAAyB,EACzB,2BAA2B,EAC3B,wBAAwB,EACxB,0BAA0B,EAC3B;AAED,qBAAa,MAAO,SAAQ,WAAW;IACrC,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;CAC9E;AAID,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,SAAS,IAAI,SAAS,EACtB,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
1
+ {"version":3,"file":"upload.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/upload/upload.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EACL,SAAS,EACT,6BAA6B,EAC7B,+BAA+B,EAC/B,8BAA8B,EAC9B,gCAAgC,EAChC,yBAAyB,EACzB,wBAAwB,EACxB,kBAAkB,EACnB;AAED,qBAAa,MAAO,SAAQ,WAAW;IACrC,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;CAC9E;AAID,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,SAAS,IAAI,SAAS,EACtB,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
@@ -1,10 +1,10 @@
1
1
  import { APIResource } from "../../../core/resource.js";
2
2
  import * as ComponentAPI from "./component.js";
3
- import { Component, ComponentCompleteUploadParams, ComponentCompleteUploadResponse, ComponentGetPresignedURLParams, ComponentGetPresignedURLResponse, ComponentUploadFileParams, ComponentUploadFileResponse, ComponentUploadURLParams, ComponentUploadURLResponse } from "./component.js";
3
+ import { Component, ComponentCompleteUploadParams, ComponentCompleteUploadResponse, ComponentGetPresignedURLParams, ComponentGetPresignedURLResponse, ComponentUploadFileParams, ComponentUploadURLParams, FileUploadResponse } from "./component.js";
4
4
  export declare class Upload extends APIResource {
5
5
  component: ComponentAPI.Component;
6
6
  }
7
7
  export declare namespace Upload {
8
- export { Component as Component, type ComponentCompleteUploadResponse as ComponentCompleteUploadResponse, type ComponentGetPresignedURLResponse as ComponentGetPresignedURLResponse, type ComponentUploadFileResponse as ComponentUploadFileResponse, type ComponentUploadURLResponse as ComponentUploadURLResponse, type ComponentCompleteUploadParams as ComponentCompleteUploadParams, type ComponentGetPresignedURLParams as ComponentGetPresignedURLParams, type ComponentUploadFileParams as ComponentUploadFileParams, type ComponentUploadURLParams as ComponentUploadURLParams, };
8
+ export { Component as Component, type FileUploadResponse as FileUploadResponse, type ComponentCompleteUploadResponse as ComponentCompleteUploadResponse, type ComponentGetPresignedURLResponse as ComponentGetPresignedURLResponse, type ComponentCompleteUploadParams as ComponentCompleteUploadParams, type ComponentGetPresignedURLParams as ComponentGetPresignedURLParams, type ComponentUploadFileParams as ComponentUploadFileParams, type ComponentUploadURLParams as ComponentUploadURLParams, };
9
9
  }
10
10
  //# sourceMappingURL=upload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/upload/upload.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EACL,SAAS,EACT,6BAA6B,EAC7B,+BAA+B,EAC/B,8BAA8B,EAC9B,gCAAgC,EAChC,yBAAyB,EACzB,2BAA2B,EAC3B,wBAAwB,EACxB,0BAA0B,EAC3B;AAED,qBAAa,MAAO,SAAQ,WAAW;IACrC,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;CAC9E;AAID,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,SAAS,IAAI,SAAS,EACtB,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
1
+ {"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/upload/upload.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EACL,SAAS,EACT,6BAA6B,EAC7B,+BAA+B,EAC/B,8BAA8B,EAC9B,gCAAgC,EAChC,yBAAyB,EACzB,wBAAwB,EACxB,kBAAkB,EACnB;AAED,qBAAa,MAAO,SAAQ,WAAW;IACrC,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;CAC9E;AAID,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,SAAS,IAAI,SAAS,EACtB,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"upload.js","sourceRoot":"","sources":["../../../src/resources/v1/upload/upload.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,qEAA4C;AAC5C,8CAUqB;AAErB,MAAa,MAAO,SAAQ,sBAAW;IAAvC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC/E,CAAC;CAAA;AAFD,wBAEC;AAED,MAAM,CAAC,SAAS,GAAG,qBAAS,CAAC"}
1
+ {"version":3,"file":"upload.js","sourceRoot":"","sources":["../../../src/resources/v1/upload/upload.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,qEAA4C;AAC5C,8CASqB;AAErB,MAAa,MAAO,SAAQ,sBAAW;IAAvC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC/E,CAAC;CAAA;AAFD,wBAEC;AAED,MAAM,CAAC,SAAS,GAAG,qBAAS,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"upload.mjs","sourceRoot":"","sources":["../../../src/resources/v1/upload/upload.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EACL,SAAS,GASV;AAED,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC/E,CAAC;CAAA;AAED,MAAM,CAAC,SAAS,GAAG,SAAS,CAAC"}
1
+ {"version":3,"file":"upload.mjs","sourceRoot":"","sources":["../../../src/resources/v1/upload/upload.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EACL,SAAS,GAQV;AAED,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC/E,CAAC;CAAA;AAED,MAAM,CAAC,SAAS,GAAG,SAAS,CAAC"}
@@ -66,7 +66,7 @@ export class Component extends APIResource {
66
66
  *
67
67
  * @example
68
68
  * ```ts
69
- * const response =
69
+ * const fileUploadResponse =
70
70
  * await client.v1.upload.component.uploadFile(
71
71
  * 'componentId',
72
72
  * {
@@ -81,7 +81,7 @@ export class Component extends APIResource {
81
81
  componentID: string,
82
82
  body: ComponentUploadFileParams,
83
83
  options?: RequestOptions,
84
- ): APIPromise<ComponentUploadFileResponse> {
84
+ ): APIPromise<FileUploadResponse> {
85
85
  return this._client.post(
86
86
  path`/api/v1/upload/component/${componentID}/file`,
87
87
  multipartFormRequestOptions({ body, ...options }, this._client),
@@ -93,56 +93,28 @@ export class Component extends APIResource {
93
93
  *
94
94
  * @example
95
95
  * ```ts
96
- * const response = await client.v1.upload.component.uploadURL(
97
- * 'componentId',
98
- * {
99
- * folderId: '507f1f77bcf86cd799439012',
100
- * name: 'my-document.pdf',
101
- * organizationId: '507f1f77bcf86cd799439011',
102
- * url: 'https://example.com/document.pdf',
103
- * },
104
- * );
96
+ * const fileUploadResponse =
97
+ * await client.v1.upload.component.uploadURL(
98
+ * 'componentId',
99
+ * {
100
+ * folderId: '507f1f77bcf86cd799439012',
101
+ * name: 'my-document.pdf',
102
+ * organizationId: '507f1f77bcf86cd799439011',
103
+ * url: 'https://example.com/document.pdf',
104
+ * },
105
+ * );
105
106
  * ```
106
107
  */
107
108
  uploadURL(
108
109
  componentID: string,
109
110
  body: ComponentUploadURLParams,
110
111
  options?: RequestOptions,
111
- ): APIPromise<ComponentUploadURLResponse> {
112
+ ): APIPromise<FileUploadResponse> {
112
113
  return this._client.post(path`/api/v1/upload/component/${componentID}/url`, { body, ...options });
113
114
  }
114
115
  }
115
116
 
116
- export interface ComponentCompleteUploadResponse {
117
- /**
118
- * The ID of the uploaded material
119
- */
120
- id: string;
121
-
122
- /**
123
- * The name of the material
124
- */
125
- name: string;
126
-
127
- /**
128
- * The status of the material
129
- */
130
- status: string;
131
- }
132
-
133
- export interface ComponentGetPresignedURLResponse {
134
- /**
135
- * The S3 key for the file
136
- */
137
- key: string;
138
-
139
- /**
140
- * The presigned URL for uploading
141
- */
142
- uploadUrl: string;
143
- }
144
-
145
- export interface ComponentUploadFileResponse {
117
+ export interface FileUploadResponse {
146
118
  /**
147
119
  * The ID of the uploaded material
148
120
  */
@@ -169,31 +141,33 @@ export interface ComponentUploadFileResponse {
169
141
  status: string;
170
142
  }
171
143
 
172
- export interface ComponentUploadURLResponse {
144
+ export interface ComponentCompleteUploadResponse {
173
145
  /**
174
146
  * The ID of the uploaded material
175
147
  */
176
148
  id: string;
177
149
 
178
150
  /**
179
- * The content type of the material
151
+ * The name of the material
180
152
  */
181
- contentType: string;
153
+ name: string;
182
154
 
183
155
  /**
184
- * The name of the material
156
+ * The status of the material
185
157
  */
186
- name: string;
158
+ status: string;
159
+ }
187
160
 
161
+ export interface ComponentGetPresignedURLResponse {
188
162
  /**
189
- * The S3 key of the uploaded file
163
+ * The S3 key for the file
190
164
  */
191
- s3Key: string;
165
+ key: string;
192
166
 
193
167
  /**
194
- * The status of the material
168
+ * The presigned URL for uploading
195
169
  */
196
- status: string;
170
+ uploadUrl: string;
197
171
  }
198
172
 
199
173
  export interface ComponentCompleteUploadParams {
@@ -276,10 +250,9 @@ export interface ComponentUploadURLParams {
276
250
 
277
251
  export declare namespace Component {
278
252
  export {
253
+ type FileUploadResponse as FileUploadResponse,
279
254
  type ComponentCompleteUploadResponse as ComponentCompleteUploadResponse,
280
255
  type ComponentGetPresignedURLResponse as ComponentGetPresignedURLResponse,
281
- type ComponentUploadFileResponse as ComponentUploadFileResponse,
282
- type ComponentUploadURLResponse as ComponentUploadURLResponse,
283
256
  type ComponentCompleteUploadParams as ComponentCompleteUploadParams,
284
257
  type ComponentGetPresignedURLParams as ComponentGetPresignedURLParams,
285
258
  type ComponentUploadFileParams as ComponentUploadFileParams,
@@ -2,10 +2,9 @@
2
2
 
3
3
  export {
4
4
  Component,
5
+ type FileUploadResponse,
5
6
  type ComponentCompleteUploadResponse,
6
7
  type ComponentGetPresignedURLResponse,
7
- type ComponentUploadFileResponse,
8
- type ComponentUploadURLResponse,
9
8
  type ComponentCompleteUploadParams,
10
9
  type ComponentGetPresignedURLParams,
11
10
  type ComponentUploadFileParams,
@@ -9,9 +9,8 @@ import {
9
9
  ComponentGetPresignedURLParams,
10
10
  ComponentGetPresignedURLResponse,
11
11
  ComponentUploadFileParams,
12
- ComponentUploadFileResponse,
13
12
  ComponentUploadURLParams,
14
- ComponentUploadURLResponse,
13
+ FileUploadResponse,
15
14
  } from './component';
16
15
 
17
16
  export class Upload extends APIResource {
@@ -23,10 +22,9 @@ Upload.Component = Component;
23
22
  export declare namespace Upload {
24
23
  export {
25
24
  Component as Component,
25
+ type FileUploadResponse as FileUploadResponse,
26
26
  type ComponentCompleteUploadResponse as ComponentCompleteUploadResponse,
27
27
  type ComponentGetPresignedURLResponse as ComponentGetPresignedURLResponse,
28
- type ComponentUploadFileResponse as ComponentUploadFileResponse,
29
- type ComponentUploadURLResponse as ComponentUploadURLResponse,
30
28
  type ComponentCompleteUploadParams as ComponentCompleteUploadParams,
31
29
  type ComponentGetPresignedURLParams as ComponentGetPresignedURLParams,
32
30
  type ComponentUploadFileParams as ComponentUploadFileParams,
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.23.0'; // x-release-please-version
1
+ export const VERSION = '1.24.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.23.0";
1
+ export declare const VERSION = "1.24.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.23.0";
1
+ export declare const VERSION = "1.24.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '1.23.0'; // x-release-please-version
4
+ exports.VERSION = '1.24.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '1.23.0'; // x-release-please-version
1
+ export const VERSION = '1.24.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map