@rippling/rippling-sdk 0.2.0-alpha.87 → 0.2.0-alpha.88
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/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/package.json +1 -1
- package/resources/agents/sessions/index.d.mts +1 -0
- package/resources/agents/sessions/index.d.mts.map +1 -1
- package/resources/agents/sessions/index.d.ts +1 -0
- package/resources/agents/sessions/index.d.ts.map +1 -1
- package/resources/agents/sessions/index.js +3 -1
- package/resources/agents/sessions/index.js.map +1 -1
- package/resources/agents/sessions/index.mjs +1 -0
- package/resources/agents/sessions/index.mjs.map +1 -1
- package/resources/agents/sessions/messages.d.mts +60 -0
- package/resources/agents/sessions/messages.d.mts.map +1 -0
- package/resources/agents/sessions/messages.d.ts +60 -0
- package/resources/agents/sessions/messages.d.ts.map +1 -0
- package/resources/agents/sessions/messages.js +19 -0
- package/resources/agents/sessions/messages.js.map +1 -0
- package/resources/agents/sessions/messages.mjs +15 -0
- package/resources/agents/sessions/messages.mjs.map +1 -0
- package/resources/agents/sessions/sessions.d.mts +4 -0
- package/resources/agents/sessions/sessions.d.mts.map +1 -1
- package/resources/agents/sessions/sessions.d.ts +4 -0
- package/resources/agents/sessions/sessions.d.ts.map +1 -1
- package/resources/agents/sessions/sessions.js +4 -0
- package/resources/agents/sessions/sessions.js.map +1 -1
- package/resources/agents/sessions/sessions.mjs +4 -0
- package/resources/agents/sessions/sessions.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/leave-program-evaluations.d.mts +5 -0
- package/resources/leave-program-evaluations.d.mts.map +1 -1
- package/resources/leave-program-evaluations.d.ts +5 -0
- package/resources/leave-program-evaluations.d.ts.map +1 -1
- package/resources/sites.d.mts +76 -77
- package/resources/sites.d.mts.map +1 -1
- package/resources/sites.d.ts +76 -77
- package/resources/sites.d.ts.map +1 -1
- package/resources/sites.js +17 -20
- package/resources/sites.js.map +1 -1
- package/resources/sites.mjs +17 -20
- package/resources/sites.mjs.map +1 -1
- package/src/client.ts +4 -4
- package/src/resources/agents/sessions/index.ts +1 -0
- package/src/resources/agents/sessions/messages.ts +83 -0
- package/src/resources/agents/sessions/sessions.ts +10 -0
- package/src/resources/index.ts +2 -2
- package/src/resources/leave-program-evaluations.ts +6 -0
- package/src/resources/sites.ts +85 -96
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/sites.d.ts
CHANGED
|
@@ -2,11 +2,12 @@ import { APIResource } from "../core/resource.js";
|
|
|
2
2
|
import * as BusinessPartnersAPI from "./business-partners.js";
|
|
3
3
|
import { APIPromise } from "../core/api-promise.js";
|
|
4
4
|
import { PageCursorURL, PagePromise } from "../core/pagination.js";
|
|
5
|
-
import { type Uploadable } from "../core/uploads.js";
|
|
6
5
|
import { RequestOptions } from "../internal/request-options.js";
|
|
7
6
|
export declare class Sites extends APIResource {
|
|
8
7
|
/**
|
|
9
|
-
* Retrieves sites that the user has view or edit access on.
|
|
8
|
+
* Retrieves sites that the user has view or edit access on. Optional query param
|
|
9
|
+
* name filters by case-insensitive substring on display name. Use GET
|
|
10
|
+
* /sites/{api_name}/ for an exact api_name lookup.
|
|
10
11
|
*
|
|
11
12
|
* @example
|
|
12
13
|
* ```ts
|
|
@@ -18,14 +19,13 @@ export declare class Sites extends APIResource {
|
|
|
18
19
|
*/
|
|
19
20
|
list(options?: RequestOptions): PagePromise<SiteListResponsesPageCursorURL, SiteListResponse>;
|
|
20
21
|
/**
|
|
21
|
-
* Create a new site
|
|
22
|
-
* file (HTML or zip).
|
|
22
|
+
* Create a new site from a staged upload.
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
25
25
|
* ```ts
|
|
26
26
|
* const site = await client.sites.create({
|
|
27
27
|
* api_name: 'my_portal',
|
|
28
|
-
*
|
|
28
|
+
* file_id: 'file_id_1',
|
|
29
29
|
* name: 'My Portal',
|
|
30
30
|
* entry_path: 'index.html',
|
|
31
31
|
* });
|
|
@@ -42,14 +42,14 @@ export declare class Sites extends APIResource {
|
|
|
42
42
|
*/
|
|
43
43
|
retrieve(apiName: string, options?: RequestOptions): APIPromise<SiteRetrieveResponse>;
|
|
44
44
|
/**
|
|
45
|
-
* Update a site
|
|
46
|
-
*
|
|
45
|
+
* Update a site. To replace the bundle, pass a file_id from
|
|
46
|
+
* upload-batches/presign.
|
|
47
47
|
*
|
|
48
48
|
* @example
|
|
49
49
|
* ```ts
|
|
50
50
|
* const site = await client.sites.update('employee_portal', {
|
|
51
|
-
* asset: fs.createReadStream('path/to/file'),
|
|
52
51
|
* entry_path: 'index.html',
|
|
52
|
+
* file_id: 'file_id_1',
|
|
53
53
|
* name: 'My Portal',
|
|
54
54
|
* });
|
|
55
55
|
* ```
|
|
@@ -65,21 +65,18 @@ export declare class Sites extends APIResource {
|
|
|
65
65
|
*/
|
|
66
66
|
delete(apiName: string, options?: RequestOptions): APIPromise<void>;
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
69
|
-
* file_id values for later file-operations puts.
|
|
70
|
-
*
|
|
71
|
-
* Send multipart/form-data with fileMeta plus one binary part named
|
|
72
|
-
* file[<client_ref>] for each metadata entry.
|
|
68
|
+
* Create staged upload records and return presigned S3 POST credentials.
|
|
73
69
|
*
|
|
74
70
|
* @example
|
|
75
71
|
* ```ts
|
|
76
|
-
* const response = await client.sites.
|
|
77
|
-
*
|
|
78
|
-
*
|
|
72
|
+
* const response = await client.sites.uploadBatchesPresign({
|
|
73
|
+
* file_intents: [
|
|
74
|
+
* { client_ref: 'index', file_name: 'index.html' },
|
|
75
|
+
* ],
|
|
79
76
|
* });
|
|
80
77
|
* ```
|
|
81
78
|
*/
|
|
82
|
-
|
|
79
|
+
uploadBatchesPresign(body: SiteUploadBatchesPresignParams, options?: RequestOptions): APIPromise<SiteUploadBatchesPresignResponse>;
|
|
83
80
|
/**
|
|
84
81
|
* List files and persisted directories from the active bundle manifest.
|
|
85
82
|
*
|
|
@@ -129,6 +126,9 @@ export declare class Sites extends APIResource {
|
|
|
129
126
|
fileOperations(apiName: string, body: SiteFileOperationsParams, options?: RequestOptions): APIPromise<SiteFileOperationsResponse>;
|
|
130
127
|
}
|
|
131
128
|
export type SiteListResponsesPageCursorURL = PageCursorURL<SiteListResponse>;
|
|
129
|
+
/**
|
|
130
|
+
* Response/resource shape for a custom site.
|
|
131
|
+
*/
|
|
132
132
|
export interface SiteListResponse {
|
|
133
133
|
/**
|
|
134
134
|
* Identifier field
|
|
@@ -154,10 +154,6 @@ export interface SiteListResponse {
|
|
|
154
154
|
* The active bundle id for the custom site
|
|
155
155
|
*/
|
|
156
156
|
current_bundle_id?: string;
|
|
157
|
-
/**
|
|
158
|
-
* The entry path inside the uploaded asset
|
|
159
|
-
*/
|
|
160
|
-
entry_path?: string;
|
|
161
157
|
/**
|
|
162
158
|
* A Rippling-owned logo URL for the custom site
|
|
163
159
|
*/
|
|
@@ -171,6 +167,9 @@ export interface SiteListResponse {
|
|
|
171
167
|
*/
|
|
172
168
|
viewer_group_id?: string;
|
|
173
169
|
}
|
|
170
|
+
/**
|
|
171
|
+
* Response/resource shape for a custom site.
|
|
172
|
+
*/
|
|
174
173
|
export interface SiteCreateResponse {
|
|
175
174
|
/**
|
|
176
175
|
* Identifier field
|
|
@@ -196,10 +195,6 @@ export interface SiteCreateResponse {
|
|
|
196
195
|
* The active bundle id for the custom site
|
|
197
196
|
*/
|
|
198
197
|
current_bundle_id?: string;
|
|
199
|
-
/**
|
|
200
|
-
* The entry path inside the uploaded asset
|
|
201
|
-
*/
|
|
202
|
-
entry_path?: string;
|
|
203
198
|
/**
|
|
204
199
|
* A Rippling-owned logo URL for the custom site
|
|
205
200
|
*/
|
|
@@ -241,10 +236,6 @@ export interface SiteRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
|
241
236
|
* The active bundle id for the custom site
|
|
242
237
|
*/
|
|
243
238
|
current_bundle_id?: string;
|
|
244
|
-
/**
|
|
245
|
-
* The entry path inside the uploaded asset
|
|
246
|
-
*/
|
|
247
|
-
entry_path?: string;
|
|
248
239
|
/**
|
|
249
240
|
* A Rippling-owned logo URL for the custom site
|
|
250
241
|
*/
|
|
@@ -258,6 +249,9 @@ export interface SiteRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
|
258
249
|
*/
|
|
259
250
|
viewer_group_id?: string;
|
|
260
251
|
}
|
|
252
|
+
/**
|
|
253
|
+
* Response/resource shape for a custom site.
|
|
254
|
+
*/
|
|
261
255
|
export interface SiteUpdateResponse {
|
|
262
256
|
/**
|
|
263
257
|
* Identifier field
|
|
@@ -283,10 +277,6 @@ export interface SiteUpdateResponse {
|
|
|
283
277
|
* The active bundle id for the custom site
|
|
284
278
|
*/
|
|
285
279
|
current_bundle_id?: string;
|
|
286
|
-
/**
|
|
287
|
-
* The entry path inside the uploaded asset
|
|
288
|
-
*/
|
|
289
|
-
entry_path?: string;
|
|
290
280
|
/**
|
|
291
281
|
* A Rippling-owned logo URL for the custom site
|
|
292
282
|
*/
|
|
@@ -300,34 +290,44 @@ export interface SiteUpdateResponse {
|
|
|
300
290
|
*/
|
|
301
291
|
viewer_group_id?: string;
|
|
302
292
|
}
|
|
303
|
-
export interface
|
|
293
|
+
export interface SiteUploadBatchesPresignResponse {
|
|
304
294
|
/**
|
|
305
295
|
* Staged files created by the upload batch.
|
|
306
296
|
*/
|
|
307
|
-
files?: Array<
|
|
297
|
+
files?: Array<SiteUploadBatchesPresignResponse.File>;
|
|
308
298
|
/**
|
|
309
299
|
* Identifier for the staged upload batch.
|
|
310
300
|
*/
|
|
311
301
|
upload_batch_id?: string;
|
|
312
302
|
}
|
|
313
|
-
export declare namespace
|
|
303
|
+
export declare namespace SiteUploadBatchesPresignResponse {
|
|
314
304
|
interface File {
|
|
315
305
|
/**
|
|
316
|
-
*
|
|
306
|
+
* Any unique client-chosen id echoed with the staged file_id for correlation. Not
|
|
307
|
+
* used server-side beyond the response.
|
|
317
308
|
*/
|
|
318
309
|
client_ref?: string;
|
|
319
310
|
/**
|
|
320
|
-
*
|
|
311
|
+
* Staged upload identifier for use in create, update, or file operations.
|
|
321
312
|
*/
|
|
322
313
|
file_id?: string;
|
|
323
314
|
/**
|
|
324
|
-
*
|
|
315
|
+
* Staged file name from the presign file_name intent.
|
|
325
316
|
*/
|
|
326
|
-
|
|
317
|
+
file_name?: string;
|
|
327
318
|
/**
|
|
328
|
-
* Upload status.
|
|
319
|
+
* Upload status. Presigned uploads return awaiting_upload until the file is
|
|
320
|
+
* uploaded to S3 and consumed.
|
|
329
321
|
*/
|
|
330
322
|
status?: string;
|
|
323
|
+
/**
|
|
324
|
+
* Form fields required for the S3 POST (send these before the file part).
|
|
325
|
+
*/
|
|
326
|
+
upload_fields?: unknown;
|
|
327
|
+
/**
|
|
328
|
+
* Presigned S3 POST URL for uploading the file bytes.
|
|
329
|
+
*/
|
|
330
|
+
upload_url?: string;
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
333
|
export interface SiteFilesResponse {
|
|
@@ -398,6 +398,9 @@ export declare namespace SiteFilesResponse {
|
|
|
398
398
|
size_bytes?: number;
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
|
+
/**
|
|
402
|
+
* Response/resource shape for a custom site.
|
|
403
|
+
*/
|
|
401
404
|
export interface SiteFileOperationsResponse {
|
|
402
405
|
/**
|
|
403
406
|
* Identifier field
|
|
@@ -423,10 +426,6 @@ export interface SiteFileOperationsResponse {
|
|
|
423
426
|
* The active bundle id for the custom site
|
|
424
427
|
*/
|
|
425
428
|
current_bundle_id?: string;
|
|
426
|
-
/**
|
|
427
|
-
* The entry path inside the uploaded asset
|
|
428
|
-
*/
|
|
429
|
-
entry_path?: string;
|
|
430
429
|
/**
|
|
431
430
|
* A Rippling-owned logo URL for the custom site
|
|
432
431
|
*/
|
|
@@ -442,71 +441,70 @@ export interface SiteFileOperationsResponse {
|
|
|
442
441
|
}
|
|
443
442
|
export interface SiteCreateParams {
|
|
444
443
|
/**
|
|
445
|
-
* The unique api name of the custom site
|
|
444
|
+
* The unique api name of the custom site
|
|
446
445
|
*/
|
|
447
446
|
api_name: string;
|
|
448
447
|
/**
|
|
449
|
-
*
|
|
450
|
-
*
|
|
448
|
+
* Staged upload id from POST /sites/upload-batches/presign/ after uploading bytes
|
|
449
|
+
* to S3. Required to create a site or replace the bundle.
|
|
451
450
|
*/
|
|
452
|
-
|
|
451
|
+
file_id: string;
|
|
453
452
|
/**
|
|
454
|
-
* The display name of the custom site
|
|
453
|
+
* The display name of the custom site
|
|
455
454
|
*/
|
|
456
455
|
name: string;
|
|
457
456
|
/**
|
|
458
|
-
* Entry path inside the uploaded asset (for example index.html). Required
|
|
459
|
-
* when the
|
|
460
|
-
* (including zip uploads that include index.html).
|
|
457
|
+
* Entry path inside the uploaded asset (for example index.html). Required with
|
|
458
|
+
* file_id when the zip has no index.html.
|
|
461
459
|
*/
|
|
462
460
|
entry_path?: string;
|
|
463
461
|
/**
|
|
464
|
-
*
|
|
462
|
+
* A Rippling-owned logo URL for the custom site
|
|
465
463
|
*/
|
|
466
464
|
logo?: string;
|
|
467
465
|
}
|
|
468
466
|
export interface SiteUpdateParams {
|
|
469
467
|
/**
|
|
470
|
-
*
|
|
471
|
-
* (application/zip) of the site bundle.
|
|
468
|
+
* The unique api name of the custom site
|
|
472
469
|
*/
|
|
473
|
-
|
|
470
|
+
api_name?: string;
|
|
474
471
|
/**
|
|
475
|
-
* Entry path inside the uploaded asset (for example index.html). Required
|
|
476
|
-
* when the
|
|
477
|
-
* (including zip uploads that include index.html).
|
|
472
|
+
* Entry path inside the uploaded asset (for example index.html). Required with
|
|
473
|
+
* file_id when the zip has no index.html.
|
|
478
474
|
*/
|
|
479
475
|
entry_path?: string;
|
|
480
476
|
/**
|
|
481
|
-
*
|
|
477
|
+
* Staged upload id from POST /sites/upload-batches/presign/ after uploading bytes
|
|
478
|
+
* to S3. Required to create a site or replace the bundle.
|
|
479
|
+
*/
|
|
480
|
+
file_id?: string;
|
|
481
|
+
/**
|
|
482
|
+
* A Rippling-owned logo URL for the custom site
|
|
482
483
|
*/
|
|
483
484
|
logo?: string;
|
|
484
485
|
/**
|
|
485
|
-
* The display name of the custom site
|
|
486
|
+
* The display name of the custom site
|
|
486
487
|
*/
|
|
487
488
|
name?: string;
|
|
488
489
|
}
|
|
489
|
-
export interface
|
|
490
|
-
/**
|
|
491
|
-
* File metadata for each multipart upload part.
|
|
492
|
-
*/
|
|
493
|
-
fileMeta: Array<SiteUploadBatchesParams.FileMeta>;
|
|
490
|
+
export interface SiteUploadBatchesPresignParams {
|
|
494
491
|
/**
|
|
495
|
-
*
|
|
496
|
-
* fileMeta entry.
|
|
492
|
+
* Non-empty array of file upload intents to stage with presigned S3 upload URLs.
|
|
497
493
|
*/
|
|
498
|
-
|
|
494
|
+
file_intents: Array<SiteUploadBatchesPresignParams.FileIntent>;
|
|
499
495
|
}
|
|
500
|
-
export declare namespace
|
|
501
|
-
interface
|
|
496
|
+
export declare namespace SiteUploadBatchesPresignParams {
|
|
497
|
+
interface FileIntent {
|
|
502
498
|
/**
|
|
503
|
-
*
|
|
499
|
+
* Any unique client-chosen id echoed with the staged file_id for correlation. Not
|
|
500
|
+
* used server-side beyond the response.
|
|
504
501
|
*/
|
|
505
502
|
client_ref: string;
|
|
506
503
|
/**
|
|
507
|
-
*
|
|
504
|
+
* File name with extension (e.g. site.zip). Used to derive Content-Type and
|
|
505
|
+
* create/PATCH asset type.
|
|
508
506
|
*/
|
|
509
|
-
|
|
507
|
+
file_name: string;
|
|
510
508
|
}
|
|
511
509
|
}
|
|
512
510
|
export interface SiteFilesParams {
|
|
@@ -544,7 +542,8 @@ export declare namespace SiteFileOperationsParams {
|
|
|
544
542
|
*/
|
|
545
543
|
op: string;
|
|
546
544
|
/**
|
|
547
|
-
* Staged upload
|
|
545
|
+
* Staged upload id from POST /sites/upload-batches/presign/ after uploading bytes
|
|
546
|
+
* to S3. Required for put operations on files.
|
|
548
547
|
*/
|
|
549
548
|
file_id?: string;
|
|
550
549
|
/**
|
|
@@ -567,6 +566,6 @@ export declare namespace SiteFileOperationsParams {
|
|
|
567
566
|
}
|
|
568
567
|
}
|
|
569
568
|
export declare namespace Sites {
|
|
570
|
-
export { type SiteListResponse as SiteListResponse, type SiteCreateResponse as SiteCreateResponse, type SiteRetrieveResponse as SiteRetrieveResponse, type SiteUpdateResponse as SiteUpdateResponse, type
|
|
569
|
+
export { type SiteListResponse as SiteListResponse, type SiteCreateResponse as SiteCreateResponse, type SiteRetrieveResponse as SiteRetrieveResponse, type SiteUpdateResponse as SiteUpdateResponse, type SiteUploadBatchesPresignResponse as SiteUploadBatchesPresignResponse, type SiteFilesResponse as SiteFilesResponse, type SiteFileOperationsResponse as SiteFileOperationsResponse, type SiteListResponsesPageCursorURL as SiteListResponsesPageCursorURL, type SiteCreateParams as SiteCreateParams, type SiteUpdateParams as SiteUpdateParams, type SiteUploadBatchesPresignParams as SiteUploadBatchesPresignParams, type SiteFilesParams as SiteFilesParams, type SiteFileOperationsParams as SiteFileOperationsParams, };
|
|
571
570
|
}
|
|
572
571
|
//# sourceMappingURL=sites.d.ts.map
|
package/resources/sites.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sites.d.ts","sourceRoot":"","sources":["../src/resources/sites.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,mBAAmB,+BAA4B;AAC3D,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,8BAA2B;
|
|
1
|
+
{"version":3,"file":"sites.d.ts","sourceRoot":"","sources":["../src/resources/sites.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,mBA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pagination_1 = require("../core/pagination.js");
|
|
7
7
|
const headers_1 = require("../internal/headers.js");
|
|
8
|
-
const uploads_1 = require("../internal/uploads.js");
|
|
9
8
|
const path_1 = require("../internal/utils/path.js");
|
|
10
9
|
class Sites extends resource_1.APIResource {
|
|
11
10
|
/**
|
|
12
|
-
* Retrieves sites that the user has view or edit access on.
|
|
11
|
+
* Retrieves sites that the user has view or edit access on. Optional query param
|
|
12
|
+
* name filters by case-insensitive substring on display name. Use GET
|
|
13
|
+
* /sites/{api_name}/ for an exact api_name lookup.
|
|
13
14
|
*
|
|
14
15
|
* @example
|
|
15
16
|
* ```ts
|
|
@@ -23,21 +24,20 @@ class Sites extends resource_1.APIResource {
|
|
|
23
24
|
return this._client.getAPIList('/sites/', (pagination_1.PageCursorURL), options);
|
|
24
25
|
}
|
|
25
26
|
/**
|
|
26
|
-
* Create a new site
|
|
27
|
-
* file (HTML or zip).
|
|
27
|
+
* Create a new site from a staged upload.
|
|
28
28
|
*
|
|
29
29
|
* @example
|
|
30
30
|
* ```ts
|
|
31
31
|
* const site = await client.sites.create({
|
|
32
32
|
* api_name: 'my_portal',
|
|
33
|
-
*
|
|
33
|
+
* file_id: 'file_id_1',
|
|
34
34
|
* name: 'My Portal',
|
|
35
35
|
* entry_path: 'index.html',
|
|
36
36
|
* });
|
|
37
37
|
* ```
|
|
38
38
|
*/
|
|
39
39
|
create(body, options) {
|
|
40
|
-
return this._client.post('/sites/',
|
|
40
|
+
return this._client.post('/sites/', { body, ...options });
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
43
|
* Retrieve a specific site.
|
|
@@ -51,20 +51,20 @@ class Sites extends resource_1.APIResource {
|
|
|
51
51
|
return this._client.get((0, path_1.path) `/sites/${apiName}/`, options);
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
54
|
-
* Update a site
|
|
55
|
-
*
|
|
54
|
+
* Update a site. To replace the bundle, pass a file_id from
|
|
55
|
+
* upload-batches/presign.
|
|
56
56
|
*
|
|
57
57
|
* @example
|
|
58
58
|
* ```ts
|
|
59
59
|
* const site = await client.sites.update('employee_portal', {
|
|
60
|
-
* asset: fs.createReadStream('path/to/file'),
|
|
61
60
|
* entry_path: 'index.html',
|
|
61
|
+
* file_id: 'file_id_1',
|
|
62
62
|
* name: 'My Portal',
|
|
63
63
|
* });
|
|
64
64
|
* ```
|
|
65
65
|
*/
|
|
66
66
|
update(apiName, body = {}, options) {
|
|
67
|
-
return this._client.patch((0, path_1.path) `/sites/${apiName}/`,
|
|
67
|
+
return this._client.patch((0, path_1.path) `/sites/${apiName}/`, { body, ...options });
|
|
68
68
|
}
|
|
69
69
|
/**
|
|
70
70
|
* Delete a site.
|
|
@@ -81,22 +81,19 @@ class Sites extends resource_1.APIResource {
|
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
/**
|
|
84
|
-
*
|
|
85
|
-
* file_id values for later file-operations puts.
|
|
86
|
-
*
|
|
87
|
-
* Send multipart/form-data with fileMeta plus one binary part named
|
|
88
|
-
* file[<client_ref>] for each metadata entry.
|
|
84
|
+
* Create staged upload records and return presigned S3 POST credentials.
|
|
89
85
|
*
|
|
90
86
|
* @example
|
|
91
87
|
* ```ts
|
|
92
|
-
* const response = await client.sites.
|
|
93
|
-
*
|
|
94
|
-
*
|
|
88
|
+
* const response = await client.sites.uploadBatchesPresign({
|
|
89
|
+
* file_intents: [
|
|
90
|
+
* { client_ref: 'index', file_name: 'index.html' },
|
|
91
|
+
* ],
|
|
95
92
|
* });
|
|
96
93
|
* ```
|
|
97
94
|
*/
|
|
98
|
-
|
|
99
|
-
return this._client.post('/sites/upload-batches/',
|
|
95
|
+
uploadBatchesPresign(body, options) {
|
|
96
|
+
return this._client.post('/sites/upload-batches/presign/', { body, ...options });
|
|
100
97
|
}
|
|
101
98
|
/**
|
|
102
99
|
* List files and persisted directories from the active bundle manifest.
|
package/resources/sites.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sites.js","sourceRoot":"","sources":["../src/resources/sites.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAgE;
|
|
1
|
+
{"version":3,"file":"sites.js","sourceRoot":"","sources":["../src/resources/sites.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAgE;AAChE,oDAAmD;AAEnD,oDAA8C;AAE9C,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;;;;;;;OAYG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,SAAS,EAAE,CAAA,0BAA+B,CAAA,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5D,CAAC;IAED;;;;;;;OAOG;IACH,QAAQ,CAAC,OAAe,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,UAAU,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,OAAe,EACf,OAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,UAAU,OAAO,GAAG,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,OAAe,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,UAAU,OAAO,GAAG,EAAE;YACnD,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;OAWG;IACH,oBAAoB,CAClB,IAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gCAAgC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CACH,OAAe,EACf,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,UAAU,OAAO,SAAS,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkCG;IACH,cAAc,CACZ,OAAe,EACf,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,UAAU,OAAO,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;CACF;AAlKD,sBAkKC"}
|
package/resources/sites.mjs
CHANGED
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
import { APIResource } from "../core/resource.mjs";
|
|
3
3
|
import { PageCursorURL } from "../core/pagination.mjs";
|
|
4
4
|
import { buildHeaders } from "../internal/headers.mjs";
|
|
5
|
-
import { multipartFormRequestOptions } from "../internal/uploads.mjs";
|
|
6
5
|
import { path } from "../internal/utils/path.mjs";
|
|
7
6
|
export class Sites extends APIResource {
|
|
8
7
|
/**
|
|
9
|
-
* Retrieves sites that the user has view or edit access on.
|
|
8
|
+
* Retrieves sites that the user has view or edit access on. Optional query param
|
|
9
|
+
* name filters by case-insensitive substring on display name. Use GET
|
|
10
|
+
* /sites/{api_name}/ for an exact api_name lookup.
|
|
10
11
|
*
|
|
11
12
|
* @example
|
|
12
13
|
* ```ts
|
|
@@ -20,21 +21,20 @@ export class Sites extends APIResource {
|
|
|
20
21
|
return this._client.getAPIList('/sites/', (PageCursorURL), options);
|
|
21
22
|
}
|
|
22
23
|
/**
|
|
23
|
-
* Create a new site
|
|
24
|
-
* file (HTML or zip).
|
|
24
|
+
* Create a new site from a staged upload.
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
27
|
* ```ts
|
|
28
28
|
* const site = await client.sites.create({
|
|
29
29
|
* api_name: 'my_portal',
|
|
30
|
-
*
|
|
30
|
+
* file_id: 'file_id_1',
|
|
31
31
|
* name: 'My Portal',
|
|
32
32
|
* entry_path: 'index.html',
|
|
33
33
|
* });
|
|
34
34
|
* ```
|
|
35
35
|
*/
|
|
36
36
|
create(body, options) {
|
|
37
|
-
return this._client.post('/sites/',
|
|
37
|
+
return this._client.post('/sites/', { body, ...options });
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
40
|
* Retrieve a specific site.
|
|
@@ -48,20 +48,20 @@ export class Sites extends APIResource {
|
|
|
48
48
|
return this._client.get(path `/sites/${apiName}/`, options);
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
|
-
* Update a site
|
|
52
|
-
*
|
|
51
|
+
* Update a site. To replace the bundle, pass a file_id from
|
|
52
|
+
* upload-batches/presign.
|
|
53
53
|
*
|
|
54
54
|
* @example
|
|
55
55
|
* ```ts
|
|
56
56
|
* const site = await client.sites.update('employee_portal', {
|
|
57
|
-
* asset: fs.createReadStream('path/to/file'),
|
|
58
57
|
* entry_path: 'index.html',
|
|
58
|
+
* file_id: 'file_id_1',
|
|
59
59
|
* name: 'My Portal',
|
|
60
60
|
* });
|
|
61
61
|
* ```
|
|
62
62
|
*/
|
|
63
63
|
update(apiName, body = {}, options) {
|
|
64
|
-
return this._client.patch(path `/sites/${apiName}/`,
|
|
64
|
+
return this._client.patch(path `/sites/${apiName}/`, { body, ...options });
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
67
67
|
* Delete a site.
|
|
@@ -78,22 +78,19 @@ export class Sites extends APIResource {
|
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
80
|
/**
|
|
81
|
-
*
|
|
82
|
-
* file_id values for later file-operations puts.
|
|
83
|
-
*
|
|
84
|
-
* Send multipart/form-data with fileMeta plus one binary part named
|
|
85
|
-
* file[<client_ref>] for each metadata entry.
|
|
81
|
+
* Create staged upload records and return presigned S3 POST credentials.
|
|
86
82
|
*
|
|
87
83
|
* @example
|
|
88
84
|
* ```ts
|
|
89
|
-
* const response = await client.sites.
|
|
90
|
-
*
|
|
91
|
-
*
|
|
85
|
+
* const response = await client.sites.uploadBatchesPresign({
|
|
86
|
+
* file_intents: [
|
|
87
|
+
* { client_ref: 'index', file_name: 'index.html' },
|
|
88
|
+
* ],
|
|
92
89
|
* });
|
|
93
90
|
* ```
|
|
94
91
|
*/
|
|
95
|
-
|
|
96
|
-
return this._client.post('/sites/upload-batches/',
|
|
92
|
+
uploadBatchesPresign(body, options) {
|
|
93
|
+
return this._client.post('/sites/upload-batches/presign/', { body, ...options });
|
|
97
94
|
}
|
|
98
95
|
/**
|
|
99
96
|
* List files and persisted directories from the active bundle manifest.
|
package/resources/sites.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sites.mjs","sourceRoot":"","sources":["../src/resources/sites.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,aAAa,EAAe,+BAA2B;
|
|
1
|
+
{"version":3,"file":"sites.mjs","sourceRoot":"","sources":["../src/resources/sites.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,aAAa,EAAe,+BAA2B;AAChE,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAEnD,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,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CAAC;IACnF,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CACH,OAAe,EACf,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,UAAU,OAAO,SAAS,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkCG;IACH,cAAc,CACZ,OAAe,EACf,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,UAAU,OAAO,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;CACF"}
|
package/src/client.ts
CHANGED
|
@@ -444,8 +444,8 @@ import {
|
|
|
444
444
|
SiteRetrieveResponse,
|
|
445
445
|
SiteUpdateParams,
|
|
446
446
|
SiteUpdateResponse,
|
|
447
|
-
|
|
448
|
-
|
|
447
|
+
SiteUploadBatchesPresignParams,
|
|
448
|
+
SiteUploadBatchesPresignResponse,
|
|
449
449
|
Sites,
|
|
450
450
|
} from './resources/sites';
|
|
451
451
|
import {
|
|
@@ -2376,13 +2376,13 @@ export declare namespace RipplingSDK {
|
|
|
2376
2376
|
type SiteCreateResponse as SiteCreateResponse,
|
|
2377
2377
|
type SiteRetrieveResponse as SiteRetrieveResponse,
|
|
2378
2378
|
type SiteUpdateResponse as SiteUpdateResponse,
|
|
2379
|
-
type
|
|
2379
|
+
type SiteUploadBatchesPresignResponse as SiteUploadBatchesPresignResponse,
|
|
2380
2380
|
type SiteFilesResponse as SiteFilesResponse,
|
|
2381
2381
|
type SiteFileOperationsResponse as SiteFileOperationsResponse,
|
|
2382
2382
|
type SiteListResponsesPageCursorURL as SiteListResponsesPageCursorURL,
|
|
2383
2383
|
type SiteCreateParams as SiteCreateParams,
|
|
2384
2384
|
type SiteUpdateParams as SiteUpdateParams,
|
|
2385
|
-
type
|
|
2385
|
+
type SiteUploadBatchesPresignParams as SiteUploadBatchesPresignParams,
|
|
2386
2386
|
type SiteFilesParams as SiteFilesParams,
|
|
2387
2387
|
type SiteFileOperationsParams as SiteFileOperationsParams,
|
|
2388
2388
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
export { Events, type EventRetrieveResponse, type EventRetrieveParams } from './events';
|
|
4
|
+
export { Messages, type MessageCreateResponse, type MessageCreateParams } from './messages';
|
|
4
5
|
export {
|
|
5
6
|
Sessions,
|
|
6
7
|
type SessionCreateResponse,
|