@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
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
6
|
+
import { path } from '../../../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Agents defined by the company
|
|
10
|
+
*/
|
|
11
|
+
export class Messages extends APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Append a user prompt to an existing agent session.
|
|
14
|
+
*/
|
|
15
|
+
create(
|
|
16
|
+
sessionID: string,
|
|
17
|
+
body: MessageCreateParams,
|
|
18
|
+
options?: RequestOptions,
|
|
19
|
+
): APIPromise<MessageCreateResponse> {
|
|
20
|
+
return this._client.post(path`/agents/sessions/${sessionID}/messages/`, { body, ...options });
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface MessageCreateResponse {
|
|
25
|
+
/**
|
|
26
|
+
* Identifier field
|
|
27
|
+
*/
|
|
28
|
+
id: string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* The ID of the agent to run
|
|
32
|
+
*/
|
|
33
|
+
agent_id: string;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Record creation date
|
|
37
|
+
*/
|
|
38
|
+
created_at: string;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* The prompt to send to the agent
|
|
42
|
+
*/
|
|
43
|
+
prompt: string;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Record update date
|
|
47
|
+
*/
|
|
48
|
+
updated_at: string;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* The session error message
|
|
52
|
+
*/
|
|
53
|
+
error_message?: string;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* The output of the session
|
|
57
|
+
*/
|
|
58
|
+
output?: unknown;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* The status of the session
|
|
62
|
+
*/
|
|
63
|
+
status?: string;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface MessageCreateParams {
|
|
67
|
+
/**
|
|
68
|
+
* The ID of the agent.
|
|
69
|
+
*/
|
|
70
|
+
agent_id: string;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* The next user prompt.
|
|
74
|
+
*/
|
|
75
|
+
prompt: string;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export declare namespace Messages {
|
|
79
|
+
export {
|
|
80
|
+
type MessageCreateResponse as MessageCreateResponse,
|
|
81
|
+
type MessageCreateParams as MessageCreateParams,
|
|
82
|
+
};
|
|
83
|
+
}
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
4
|
import * as EventsAPI from './events';
|
|
5
5
|
import { EventRetrieveParams, EventRetrieveResponse, Events } from './events';
|
|
6
|
+
import * as MessagesAPI from './messages';
|
|
7
|
+
import { MessageCreateParams, MessageCreateResponse, Messages } from './messages';
|
|
6
8
|
import { APIPromise } from '../../../core/api-promise';
|
|
7
9
|
import { PageCursorURL, PagePromise } from '../../../core/pagination';
|
|
8
10
|
import { RequestOptions } from '../../../internal/request-options';
|
|
@@ -12,6 +14,7 @@ import { path } from '../../../internal/utils/path';
|
|
|
12
14
|
* Agents defined by the company
|
|
13
15
|
*/
|
|
14
16
|
export class Sessions extends APIResource {
|
|
17
|
+
messages: MessagesAPI.Messages = new MessagesAPI.Messages(this._client);
|
|
15
18
|
events: EventsAPI.Events = new EventsAPI.Events(this._client);
|
|
16
19
|
|
|
17
20
|
/**
|
|
@@ -196,6 +199,7 @@ export interface SessionListParams {
|
|
|
196
199
|
limit?: number;
|
|
197
200
|
}
|
|
198
201
|
|
|
202
|
+
Sessions.Messages = Messages;
|
|
199
203
|
Sessions.Events = Events;
|
|
200
204
|
|
|
201
205
|
export declare namespace Sessions {
|
|
@@ -208,6 +212,12 @@ export declare namespace Sessions {
|
|
|
208
212
|
type SessionListParams as SessionListParams,
|
|
209
213
|
};
|
|
210
214
|
|
|
215
|
+
export {
|
|
216
|
+
Messages as Messages,
|
|
217
|
+
type MessageCreateResponse as MessageCreateResponse,
|
|
218
|
+
type MessageCreateParams as MessageCreateParams,
|
|
219
|
+
};
|
|
220
|
+
|
|
211
221
|
export {
|
|
212
222
|
Events as Events,
|
|
213
223
|
type EventRetrieveResponse as EventRetrieveResponse,
|
package/src/resources/index.ts
CHANGED
|
@@ -468,12 +468,12 @@ export {
|
|
|
468
468
|
type SiteCreateResponse,
|
|
469
469
|
type SiteRetrieveResponse,
|
|
470
470
|
type SiteUpdateResponse,
|
|
471
|
-
type
|
|
471
|
+
type SiteUploadBatchesPresignResponse,
|
|
472
472
|
type SiteFilesResponse,
|
|
473
473
|
type SiteFileOperationsResponse,
|
|
474
474
|
type SiteCreateParams,
|
|
475
475
|
type SiteUpdateParams,
|
|
476
|
-
type
|
|
476
|
+
type SiteUploadBatchesPresignParams,
|
|
477
477
|
type SiteFilesParams,
|
|
478
478
|
type SiteFileOperationsParams,
|
|
479
479
|
type SiteListResponsesPageCursorURL,
|
|
@@ -681,6 +681,12 @@ export interface LeaveProgramEvaluationCreateParams {
|
|
|
681
681
|
*/
|
|
682
682
|
role_id: string;
|
|
683
683
|
|
|
684
|
+
/**
|
|
685
|
+
* Optional delivery type for birthing-parent disability evaluations. Used to
|
|
686
|
+
* estimate postpartum disability windows for programs such as CA-SDI and CA-PDL.
|
|
687
|
+
*/
|
|
688
|
+
birth_type?: 'VAGINAL' | 'C_SECTION' | 'UNKNOWN';
|
|
689
|
+
|
|
684
690
|
/**
|
|
685
691
|
* Optional date the child entered the family for bonding leave programs.
|
|
686
692
|
*/
|
package/src/resources/sites.ts
CHANGED
|
@@ -4,15 +4,15 @@ import { APIResource } from '../core/resource';
|
|
|
4
4
|
import * as BusinessPartnersAPI from './business-partners';
|
|
5
5
|
import { APIPromise } from '../core/api-promise';
|
|
6
6
|
import { PageCursorURL, PagePromise } from '../core/pagination';
|
|
7
|
-
import { type Uploadable } from '../core/uploads';
|
|
8
7
|
import { buildHeaders } from '../internal/headers';
|
|
9
8
|
import { RequestOptions } from '../internal/request-options';
|
|
10
|
-
import { multipartFormRequestOptions } from '../internal/uploads';
|
|
11
9
|
import { path } from '../internal/utils/path';
|
|
12
10
|
|
|
13
11
|
export class Sites extends APIResource {
|
|
14
12
|
/**
|
|
15
|
-
* Retrieves sites that the user has view or edit access on.
|
|
13
|
+
* Retrieves sites that the user has view or edit access on. Optional query param
|
|
14
|
+
* name filters by case-insensitive substring on display name. Use GET
|
|
15
|
+
* /sites/{api_name}/ for an exact api_name lookup.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* ```ts
|
|
@@ -27,21 +27,20 @@ export class Sites extends APIResource {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* Create a new site
|
|
31
|
-
* file (HTML or zip).
|
|
30
|
+
* Create a new site from a staged upload.
|
|
32
31
|
*
|
|
33
32
|
* @example
|
|
34
33
|
* ```ts
|
|
35
34
|
* const site = await client.sites.create({
|
|
36
35
|
* api_name: 'my_portal',
|
|
37
|
-
*
|
|
36
|
+
* file_id: 'file_id_1',
|
|
38
37
|
* name: 'My Portal',
|
|
39
38
|
* entry_path: 'index.html',
|
|
40
39
|
* });
|
|
41
40
|
* ```
|
|
42
41
|
*/
|
|
43
42
|
create(body: SiteCreateParams, options?: RequestOptions): APIPromise<SiteCreateResponse> {
|
|
44
|
-
return this._client.post('/sites/',
|
|
43
|
+
return this._client.post('/sites/', { body, ...options });
|
|
45
44
|
}
|
|
46
45
|
|
|
47
46
|
/**
|
|
@@ -57,14 +56,14 @@ export class Sites extends APIResource {
|
|
|
57
56
|
}
|
|
58
57
|
|
|
59
58
|
/**
|
|
60
|
-
* Update a site
|
|
61
|
-
*
|
|
59
|
+
* Update a site. To replace the bundle, pass a file_id from
|
|
60
|
+
* upload-batches/presign.
|
|
62
61
|
*
|
|
63
62
|
* @example
|
|
64
63
|
* ```ts
|
|
65
64
|
* const site = await client.sites.update('employee_portal', {
|
|
66
|
-
* asset: fs.createReadStream('path/to/file'),
|
|
67
65
|
* entry_path: 'index.html',
|
|
66
|
+
* file_id: 'file_id_1',
|
|
68
67
|
* name: 'My Portal',
|
|
69
68
|
* });
|
|
70
69
|
* ```
|
|
@@ -74,10 +73,7 @@ export class Sites extends APIResource {
|
|
|
74
73
|
body: SiteUpdateParams | null | undefined = {},
|
|
75
74
|
options?: RequestOptions,
|
|
76
75
|
): APIPromise<SiteUpdateResponse> {
|
|
77
|
-
return this._client.patch(
|
|
78
|
-
path`/sites/${apiName}/`,
|
|
79
|
-
multipartFormRequestOptions({ body, ...options }, this._client),
|
|
80
|
-
);
|
|
76
|
+
return this._client.patch(path`/sites/${apiName}/`, { body, ...options });
|
|
81
77
|
}
|
|
82
78
|
|
|
83
79
|
/**
|
|
@@ -96,28 +92,22 @@ export class Sites extends APIResource {
|
|
|
96
92
|
}
|
|
97
93
|
|
|
98
94
|
/**
|
|
99
|
-
*
|
|
100
|
-
* file_id values for later file-operations puts.
|
|
101
|
-
*
|
|
102
|
-
* Send multipart/form-data with fileMeta plus one binary part named
|
|
103
|
-
* file[<client_ref>] for each metadata entry.
|
|
95
|
+
* Create staged upload records and return presigned S3 POST credentials.
|
|
104
96
|
*
|
|
105
97
|
* @example
|
|
106
98
|
* ```ts
|
|
107
|
-
* const response = await client.sites.
|
|
108
|
-
*
|
|
109
|
-
*
|
|
99
|
+
* const response = await client.sites.uploadBatchesPresign({
|
|
100
|
+
* file_intents: [
|
|
101
|
+
* { client_ref: 'index', file_name: 'index.html' },
|
|
102
|
+
* ],
|
|
110
103
|
* });
|
|
111
104
|
* ```
|
|
112
105
|
*/
|
|
113
|
-
|
|
114
|
-
body:
|
|
106
|
+
uploadBatchesPresign(
|
|
107
|
+
body: SiteUploadBatchesPresignParams,
|
|
115
108
|
options?: RequestOptions,
|
|
116
|
-
): APIPromise<
|
|
117
|
-
return this._client.post(
|
|
118
|
-
'/sites/upload-batches/',
|
|
119
|
-
multipartFormRequestOptions({ body, ...options }, this._client),
|
|
120
|
-
);
|
|
109
|
+
): APIPromise<SiteUploadBatchesPresignResponse> {
|
|
110
|
+
return this._client.post('/sites/upload-batches/presign/', { body, ...options });
|
|
121
111
|
}
|
|
122
112
|
|
|
123
113
|
/**
|
|
@@ -184,6 +174,9 @@ export class Sites extends APIResource {
|
|
|
184
174
|
|
|
185
175
|
export type SiteListResponsesPageCursorURL = PageCursorURL<SiteListResponse>;
|
|
186
176
|
|
|
177
|
+
/**
|
|
178
|
+
* Response/resource shape for a custom site.
|
|
179
|
+
*/
|
|
187
180
|
export interface SiteListResponse {
|
|
188
181
|
/**
|
|
189
182
|
* Identifier field
|
|
@@ -215,11 +208,6 @@ export interface SiteListResponse {
|
|
|
215
208
|
*/
|
|
216
209
|
current_bundle_id?: string;
|
|
217
210
|
|
|
218
|
-
/**
|
|
219
|
-
* The entry path inside the uploaded asset
|
|
220
|
-
*/
|
|
221
|
-
entry_path?: string;
|
|
222
|
-
|
|
223
211
|
/**
|
|
224
212
|
* A Rippling-owned logo URL for the custom site
|
|
225
213
|
*/
|
|
@@ -236,6 +224,9 @@ export interface SiteListResponse {
|
|
|
236
224
|
viewer_group_id?: string;
|
|
237
225
|
}
|
|
238
226
|
|
|
227
|
+
/**
|
|
228
|
+
* Response/resource shape for a custom site.
|
|
229
|
+
*/
|
|
239
230
|
export interface SiteCreateResponse {
|
|
240
231
|
/**
|
|
241
232
|
* Identifier field
|
|
@@ -267,11 +258,6 @@ export interface SiteCreateResponse {
|
|
|
267
258
|
*/
|
|
268
259
|
current_bundle_id?: string;
|
|
269
260
|
|
|
270
|
-
/**
|
|
271
|
-
* The entry path inside the uploaded asset
|
|
272
|
-
*/
|
|
273
|
-
entry_path?: string;
|
|
274
|
-
|
|
275
261
|
/**
|
|
276
262
|
* A Rippling-owned logo URL for the custom site
|
|
277
263
|
*/
|
|
@@ -322,11 +308,6 @@ export interface SiteRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
|
322
308
|
*/
|
|
323
309
|
current_bundle_id?: string;
|
|
324
310
|
|
|
325
|
-
/**
|
|
326
|
-
* The entry path inside the uploaded asset
|
|
327
|
-
*/
|
|
328
|
-
entry_path?: string;
|
|
329
|
-
|
|
330
311
|
/**
|
|
331
312
|
* A Rippling-owned logo URL for the custom site
|
|
332
313
|
*/
|
|
@@ -343,6 +324,9 @@ export interface SiteRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
|
343
324
|
viewer_group_id?: string;
|
|
344
325
|
}
|
|
345
326
|
|
|
327
|
+
/**
|
|
328
|
+
* Response/resource shape for a custom site.
|
|
329
|
+
*/
|
|
346
330
|
export interface SiteUpdateResponse {
|
|
347
331
|
/**
|
|
348
332
|
* Identifier field
|
|
@@ -374,11 +358,6 @@ export interface SiteUpdateResponse {
|
|
|
374
358
|
*/
|
|
375
359
|
current_bundle_id?: string;
|
|
376
360
|
|
|
377
|
-
/**
|
|
378
|
-
* The entry path inside the uploaded asset
|
|
379
|
-
*/
|
|
380
|
-
entry_path?: string;
|
|
381
|
-
|
|
382
361
|
/**
|
|
383
362
|
* A Rippling-owned logo URL for the custom site
|
|
384
363
|
*/
|
|
@@ -395,11 +374,11 @@ export interface SiteUpdateResponse {
|
|
|
395
374
|
viewer_group_id?: string;
|
|
396
375
|
}
|
|
397
376
|
|
|
398
|
-
export interface
|
|
377
|
+
export interface SiteUploadBatchesPresignResponse {
|
|
399
378
|
/**
|
|
400
379
|
* Staged files created by the upload batch.
|
|
401
380
|
*/
|
|
402
|
-
files?: Array<
|
|
381
|
+
files?: Array<SiteUploadBatchesPresignResponse.File>;
|
|
403
382
|
|
|
404
383
|
/**
|
|
405
384
|
* Identifier for the staged upload batch.
|
|
@@ -407,27 +386,39 @@ export interface SiteUploadBatchesResponse {
|
|
|
407
386
|
upload_batch_id?: string;
|
|
408
387
|
}
|
|
409
388
|
|
|
410
|
-
export namespace
|
|
389
|
+
export namespace SiteUploadBatchesPresignResponse {
|
|
411
390
|
export interface File {
|
|
412
391
|
/**
|
|
413
|
-
*
|
|
392
|
+
* Any unique client-chosen id echoed with the staged file_id for correlation. Not
|
|
393
|
+
* used server-side beyond the response.
|
|
414
394
|
*/
|
|
415
395
|
client_ref?: string;
|
|
416
396
|
|
|
417
397
|
/**
|
|
418
|
-
*
|
|
398
|
+
* Staged upload identifier for use in create, update, or file operations.
|
|
419
399
|
*/
|
|
420
400
|
file_id?: string;
|
|
421
401
|
|
|
422
402
|
/**
|
|
423
|
-
*
|
|
403
|
+
* Staged file name from the presign file_name intent.
|
|
424
404
|
*/
|
|
425
|
-
|
|
405
|
+
file_name?: string;
|
|
426
406
|
|
|
427
407
|
/**
|
|
428
|
-
* Upload status.
|
|
408
|
+
* Upload status. Presigned uploads return awaiting_upload until the file is
|
|
409
|
+
* uploaded to S3 and consumed.
|
|
429
410
|
*/
|
|
430
411
|
status?: string;
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* Form fields required for the S3 POST (send these before the file part).
|
|
415
|
+
*/
|
|
416
|
+
upload_fields?: unknown;
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* Presigned S3 POST URL for uploading the file bytes.
|
|
420
|
+
*/
|
|
421
|
+
upload_url?: string;
|
|
431
422
|
}
|
|
432
423
|
}
|
|
433
424
|
|
|
@@ -514,6 +505,9 @@ export namespace SiteFilesResponse {
|
|
|
514
505
|
}
|
|
515
506
|
}
|
|
516
507
|
|
|
508
|
+
/**
|
|
509
|
+
* Response/resource shape for a custom site.
|
|
510
|
+
*/
|
|
517
511
|
export interface SiteFileOperationsResponse {
|
|
518
512
|
/**
|
|
519
513
|
* Identifier field
|
|
@@ -545,11 +539,6 @@ export interface SiteFileOperationsResponse {
|
|
|
545
539
|
*/
|
|
546
540
|
current_bundle_id?: string;
|
|
547
541
|
|
|
548
|
-
/**
|
|
549
|
-
* The entry path inside the uploaded asset
|
|
550
|
-
*/
|
|
551
|
-
entry_path?: string;
|
|
552
|
-
|
|
553
542
|
/**
|
|
554
543
|
* A Rippling-owned logo URL for the custom site
|
|
555
544
|
*/
|
|
@@ -568,83 +557,82 @@ export interface SiteFileOperationsResponse {
|
|
|
568
557
|
|
|
569
558
|
export interface SiteCreateParams {
|
|
570
559
|
/**
|
|
571
|
-
* The unique api name of the custom site
|
|
560
|
+
* The unique api name of the custom site
|
|
572
561
|
*/
|
|
573
562
|
api_name: string;
|
|
574
563
|
|
|
575
564
|
/**
|
|
576
|
-
*
|
|
577
|
-
*
|
|
565
|
+
* Staged upload id from POST /sites/upload-batches/presign/ after uploading bytes
|
|
566
|
+
* to S3. Required to create a site or replace the bundle.
|
|
578
567
|
*/
|
|
579
|
-
|
|
568
|
+
file_id: string;
|
|
580
569
|
|
|
581
570
|
/**
|
|
582
|
-
* The display name of the custom site
|
|
571
|
+
* The display name of the custom site
|
|
583
572
|
*/
|
|
584
573
|
name: string;
|
|
585
574
|
|
|
586
575
|
/**
|
|
587
|
-
* Entry path inside the uploaded asset (for example index.html). Required
|
|
588
|
-
* when the
|
|
589
|
-
* (including zip uploads that include index.html).
|
|
576
|
+
* Entry path inside the uploaded asset (for example index.html). Required with
|
|
577
|
+
* file_id when the zip has no index.html.
|
|
590
578
|
*/
|
|
591
579
|
entry_path?: string;
|
|
592
580
|
|
|
593
581
|
/**
|
|
594
|
-
*
|
|
582
|
+
* A Rippling-owned logo URL for the custom site
|
|
595
583
|
*/
|
|
596
584
|
logo?: string;
|
|
597
585
|
}
|
|
598
586
|
|
|
599
587
|
export interface SiteUpdateParams {
|
|
600
588
|
/**
|
|
601
|
-
*
|
|
602
|
-
* (application/zip) of the site bundle.
|
|
589
|
+
* The unique api name of the custom site
|
|
603
590
|
*/
|
|
604
|
-
|
|
591
|
+
api_name?: string;
|
|
605
592
|
|
|
606
593
|
/**
|
|
607
|
-
* Entry path inside the uploaded asset (for example index.html). Required
|
|
608
|
-
* when the
|
|
609
|
-
* (including zip uploads that include index.html).
|
|
594
|
+
* Entry path inside the uploaded asset (for example index.html). Required with
|
|
595
|
+
* file_id when the zip has no index.html.
|
|
610
596
|
*/
|
|
611
597
|
entry_path?: string;
|
|
612
598
|
|
|
613
599
|
/**
|
|
614
|
-
*
|
|
600
|
+
* Staged upload id from POST /sites/upload-batches/presign/ after uploading bytes
|
|
601
|
+
* to S3. Required to create a site or replace the bundle.
|
|
615
602
|
*/
|
|
616
|
-
|
|
603
|
+
file_id?: string;
|
|
617
604
|
|
|
618
605
|
/**
|
|
619
|
-
*
|
|
606
|
+
* A Rippling-owned logo URL for the custom site
|
|
620
607
|
*/
|
|
621
|
-
|
|
622
|
-
}
|
|
608
|
+
logo?: string;
|
|
623
609
|
|
|
624
|
-
export interface SiteUploadBatchesParams {
|
|
625
610
|
/**
|
|
626
|
-
*
|
|
611
|
+
* The display name of the custom site
|
|
627
612
|
*/
|
|
628
|
-
|
|
613
|
+
name?: string;
|
|
614
|
+
}
|
|
629
615
|
|
|
616
|
+
export interface SiteUploadBatchesPresignParams {
|
|
630
617
|
/**
|
|
631
|
-
*
|
|
632
|
-
* fileMeta entry.
|
|
618
|
+
* Non-empty array of file upload intents to stage with presigned S3 upload URLs.
|
|
633
619
|
*/
|
|
634
|
-
|
|
620
|
+
file_intents: Array<SiteUploadBatchesPresignParams.FileIntent>;
|
|
635
621
|
}
|
|
636
622
|
|
|
637
|
-
export namespace
|
|
638
|
-
export interface
|
|
623
|
+
export namespace SiteUploadBatchesPresignParams {
|
|
624
|
+
export interface FileIntent {
|
|
639
625
|
/**
|
|
640
|
-
*
|
|
626
|
+
* Any unique client-chosen id echoed with the staged file_id for correlation. Not
|
|
627
|
+
* used server-side beyond the response.
|
|
641
628
|
*/
|
|
642
629
|
client_ref: string;
|
|
643
630
|
|
|
644
631
|
/**
|
|
645
|
-
*
|
|
632
|
+
* File name with extension (e.g. site.zip). Used to derive Content-Type and
|
|
633
|
+
* create/PATCH asset type.
|
|
646
634
|
*/
|
|
647
|
-
|
|
635
|
+
file_name: string;
|
|
648
636
|
}
|
|
649
637
|
}
|
|
650
638
|
|
|
@@ -690,7 +678,8 @@ export namespace SiteFileOperationsParams {
|
|
|
690
678
|
op: string;
|
|
691
679
|
|
|
692
680
|
/**
|
|
693
|
-
* Staged upload
|
|
681
|
+
* Staged upload id from POST /sites/upload-batches/presign/ after uploading bytes
|
|
682
|
+
* to S3. Required for put operations on files.
|
|
694
683
|
*/
|
|
695
684
|
file_id?: string;
|
|
696
685
|
|
|
@@ -723,13 +712,13 @@ export declare namespace Sites {
|
|
|
723
712
|
type SiteCreateResponse as SiteCreateResponse,
|
|
724
713
|
type SiteRetrieveResponse as SiteRetrieveResponse,
|
|
725
714
|
type SiteUpdateResponse as SiteUpdateResponse,
|
|
726
|
-
type
|
|
715
|
+
type SiteUploadBatchesPresignResponse as SiteUploadBatchesPresignResponse,
|
|
727
716
|
type SiteFilesResponse as SiteFilesResponse,
|
|
728
717
|
type SiteFileOperationsResponse as SiteFileOperationsResponse,
|
|
729
718
|
type SiteListResponsesPageCursorURL as SiteListResponsesPageCursorURL,
|
|
730
719
|
type SiteCreateParams as SiteCreateParams,
|
|
731
720
|
type SiteUpdateParams as SiteUpdateParams,
|
|
732
|
-
type
|
|
721
|
+
type SiteUploadBatchesPresignParams as SiteUploadBatchesPresignParams,
|
|
733
722
|
type SiteFilesParams as SiteFilesParams,
|
|
734
723
|
type SiteFileOperationsParams as SiteFileOperationsParams,
|
|
735
724
|
};
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.2.0-alpha.
|
|
1
|
+
export const VERSION = '0.2.0-alpha.88'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.2.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.2.0-alpha.88";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.2.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.2.0-alpha.88";
|
|
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 = '0.2.0-alpha.
|
|
4
|
+
exports.VERSION = '0.2.0-alpha.88'; // x-release-please-version
|
|
5
5
|
//# sourceMappingURL=version.js.map
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.2.0-alpha.
|
|
1
|
+
export const VERSION = '0.2.0-alpha.88'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|