@oursprivacy/platform-sdk 1.0.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 +11 -0
- package/LICENSE +201 -0
- package/README.md +358 -0
- package/api-promise.d.mts +2 -0
- package/api-promise.d.mts.map +1 -0
- package/api-promise.d.ts +2 -0
- package/api-promise.d.ts.map +1 -0
- package/api-promise.js +6 -0
- package/api-promise.js.map +1 -0
- package/api-promise.mjs +2 -0
- package/api-promise.mjs.map +1 -0
- package/client.d.mts +199 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +199 -0
- package/client.d.ts.map +1 -0
- package/client.js +492 -0
- package/client.js.map +1 -0
- package/client.mjs +488 -0
- package/client.mjs.map +1 -0
- package/core/api-promise.d.mts +46 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +46 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +74 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +70 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +46 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +46 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +113 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +97 -0
- package/core/error.mjs.map +1 -0
- package/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +11 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +7 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +2 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +2 -0
- package/error.d.ts.map +1 -0
- package/error.js +6 -0
- package/error.js.map +1 -0
- package/error.mjs +2 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +6 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +6 -0
- package/index.d.ts.map +1 -0
- package/index.js +30 -0
- package/index.js.map +1 -0
- package/index.mjs +7 -0
- package/index.mjs.map +1 -0
- package/internal/builtin-types.d.mts +73 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +73 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +4 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +3 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/detect-platform.d.mts +15 -0
- package/internal/detect-platform.d.mts.map +1 -0
- package/internal/detect-platform.d.ts +15 -0
- package/internal/detect-platform.d.ts.map +1 -0
- package/internal/detect-platform.js +162 -0
- package/internal/detect-platform.js.map +1 -0
- package/internal/detect-platform.mjs +157 -0
- package/internal/detect-platform.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +41 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +36 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +20 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +20 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +79 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +74 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +12 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +12 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +40 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +37 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/request-options.d.mts +75 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +75 -0
- package/internal/request-options.d.ts.map +1 -0
- package/internal/request-options.js +14 -0
- package/internal/request-options.js.map +1 -0
- package/internal/request-options.mjs +10 -0
- package/internal/request-options.mjs.map +1 -0
- package/internal/shim-types.d.mts +17 -0
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +17 -0
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/internal/shim-types.mjs +3 -0
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +20 -0
- package/internal/shims.d.mts.map +1 -0
- package/internal/shims.d.ts +20 -0
- package/internal/shims.d.ts.map +1 -0
- package/internal/shims.js +92 -0
- package/internal/shims.js.map +1 -0
- package/internal/shims.mjs +85 -0
- package/internal/shims.mjs.map +1 -0
- package/internal/to-file.d.mts +45 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +45 -0
- package/internal/to-file.d.ts.map +1 -0
- package/internal/to-file.js +91 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +88 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/tslib.js +81 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +69 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +69 -0
- package/internal/types.d.ts.map +1 -0
- package/internal/types.js +4 -0
- package/internal/types.js.map +1 -0
- package/internal/types.mjs +3 -0
- package/internal/types.mjs.map +1 -0
- package/internal/uploads.d.mts +42 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +42 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +141 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +131 -0
- package/internal/uploads.mjs.map +1 -0
- package/internal/utils/base64.d.mts +3 -0
- package/internal/utils/base64.d.mts.map +1 -0
- package/internal/utils/base64.d.ts +3 -0
- package/internal/utils/base64.d.ts.map +1 -0
- package/internal/utils/base64.js +38 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +33 -0
- package/internal/utils/base64.mjs.map +1 -0
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts +9 -0
- package/internal/utils/env.d.mts.map +1 -0
- package/internal/utils/env.d.ts +9 -0
- package/internal/utils/env.d.ts.map +1 -0
- package/internal/utils/env.js +22 -0
- package/internal/utils/env.js.map +1 -0
- package/internal/utils/env.mjs +18 -0
- package/internal/utils/env.mjs.map +1 -0
- package/internal/utils/log.d.mts +37 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +37 -0
- package/internal/utils/log.d.ts.map +1 -0
- package/internal/utils/log.js +85 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +79 -0
- package/internal/utils/log.mjs.map +1 -0
- package/internal/utils/path.d.mts +15 -0
- package/internal/utils/path.d.mts.map +1 -0
- package/internal/utils/path.d.ts +15 -0
- package/internal/utils/path.d.ts.map +1 -0
- package/internal/utils/path.js +79 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +74 -0
- package/internal/utils/path.mjs.map +1 -0
- package/internal/utils/sleep.d.mts +2 -0
- package/internal/utils/sleep.d.mts.map +1 -0
- package/internal/utils/sleep.d.ts +2 -0
- package/internal/utils/sleep.d.ts.map +1 -0
- package/internal/utils/sleep.js +7 -0
- package/internal/utils/sleep.js.map +1 -0
- package/internal/utils/sleep.mjs +3 -0
- package/internal/utils/sleep.mjs.map +1 -0
- package/internal/utils/uuid.d.mts +5 -0
- package/internal/utils/uuid.d.mts.map +1 -0
- package/internal/utils/uuid.d.ts +5 -0
- package/internal/utils/uuid.d.ts.map +1 -0
- package/internal/utils/uuid.js +19 -0
- package/internal/utils/uuid.js.map +1 -0
- package/internal/utils/uuid.mjs +15 -0
- package/internal/utils/uuid.mjs.map +1 -0
- package/internal/utils/values.d.mts +18 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +18 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +112 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +94 -0
- package/internal/utils/values.mjs.map +1 -0
- package/internal/utils.d.mts +7 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +7 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +11 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +8 -0
- package/internal/utils.mjs.map +1 -0
- package/package.json +137 -0
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +2 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +6 -0
- package/resource.js.map +1 -0
- package/resource.mjs +2 -0
- package/resource.mjs.map +1 -0
- package/resources/allowed-events.d.mts +39 -0
- package/resources/allowed-events.d.mts.map +1 -0
- package/resources/allowed-events.d.ts +39 -0
- package/resources/allowed-events.d.ts.map +1 -0
- package/resources/allowed-events.js +34 -0
- package/resources/allowed-events.js.map +1 -0
- package/resources/allowed-events.mjs +30 -0
- package/resources/allowed-events.mjs.map +1 -0
- package/resources/consent-settings.d.mts +48 -0
- package/resources/consent-settings.d.mts.map +1 -0
- package/resources/consent-settings.d.ts +48 -0
- package/resources/consent-settings.d.ts.map +1 -0
- package/resources/consent-settings.js +40 -0
- package/resources/consent-settings.js.map +1 -0
- package/resources/consent-settings.mjs +36 -0
- package/resources/consent-settings.mjs.map +1 -0
- package/resources/destinations.d.mts +48 -0
- package/resources/destinations.d.mts.map +1 -0
- package/resources/destinations.d.ts +48 -0
- package/resources/destinations.d.ts.map +1 -0
- package/resources/destinations.js +40 -0
- package/resources/destinations.js.map +1 -0
- package/resources/destinations.mjs +36 -0
- package/resources/destinations.mjs.map +1 -0
- package/resources/global-dispatch-centers.d.mts +48 -0
- package/resources/global-dispatch-centers.d.mts.map +1 -0
- package/resources/global-dispatch-centers.d.ts +48 -0
- package/resources/global-dispatch-centers.d.ts.map +1 -0
- package/resources/global-dispatch-centers.js +40 -0
- package/resources/global-dispatch-centers.js.map +1 -0
- package/resources/global-dispatch-centers.mjs +36 -0
- package/resources/global-dispatch-centers.mjs.map +1 -0
- package/resources/index.d.mts +8 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +8 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +19 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +9 -0
- package/resources/index.mjs.map +1 -0
- package/resources/replay-settings.d.mts +48 -0
- package/resources/replay-settings.d.mts.map +1 -0
- package/resources/replay-settings.d.ts +48 -0
- package/resources/replay-settings.d.ts.map +1 -0
- package/resources/replay-settings.js +40 -0
- package/resources/replay-settings.js.map +1 -0
- package/resources/replay-settings.mjs +36 -0
- package/resources/replay-settings.mjs.map +1 -0
- package/resources/sources.d.mts +48 -0
- package/resources/sources.d.mts.map +1 -0
- package/resources/sources.d.ts +48 -0
- package/resources/sources.d.ts.map +1 -0
- package/resources/sources.js +40 -0
- package/resources/sources.js.map +1 -0
- package/resources/sources.mjs +36 -0
- package/resources/sources.mjs.map +1 -0
- package/resources/versions.d.mts +41 -0
- package/resources/versions.d.mts.map +1 -0
- package/resources/versions.d.ts +41 -0
- package/resources/versions.d.ts.map +1 -0
- package/resources/versions.js +34 -0
- package/resources/versions.js.map +1 -0
- package/resources/versions.mjs +30 -0
- package/resources/versions.mjs.map +1 -0
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +5 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/api-promise.ts +2 -0
- package/src/client.ts +891 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +130 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -0
- package/src/index.ts +22 -0
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +93 -0
- package/src/internal/detect-platform.ts +196 -0
- package/src/internal/errors.ts +33 -0
- package/src/internal/headers.ts +97 -0
- package/src/internal/parse.ts +59 -0
- package/src/internal/request-options.ts +91 -0
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +154 -0
- package/src/internal/types.ts +95 -0
- package/src/internal/uploads.ts +187 -0
- package/src/internal/utils/base64.ts +44 -0
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/env.ts +18 -0
- package/src/internal/utils/log.ts +126 -0
- package/src/internal/utils/path.ts +88 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +17 -0
- package/src/internal/utils/values.ts +105 -0
- package/src/internal/utils.ts +8 -0
- package/src/lib/.keep +4 -0
- package/src/resource.ts +2 -0
- package/src/resources/allowed-events.ts +64 -0
- package/src/resources/consent-settings.ts +86 -0
- package/src/resources/destinations.ts +83 -0
- package/src/resources/global-dispatch-centers.ts +86 -0
- package/src/resources/index.ts +69 -0
- package/src/resources/replay-settings.ts +83 -0
- package/src/resources/sources.ts +79 -0
- package/src/resources/versions.ts +67 -0
- package/src/resources.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +2 -0
- package/src/version.ts +1 -0
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +2 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +6 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +2 -0
- package/uploads.mjs.map +1 -0
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
|
@@ -0,0 +1,64 @@
|
|
|
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
|
+
export class AllowedEvents extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create a new allowed event. Requires scope: allowedEvent:create
|
|
11
|
+
*/
|
|
12
|
+
create(body: AllowedEventCreateParams, options?: RequestOptions): APIPromise<AllowedEventCreateResponse> {
|
|
13
|
+
return this._client.post('/rest/v1/allowed-events', { body, ...options });
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Find a single allowed event by ID. Requires scope: allowedEvent:find
|
|
18
|
+
*/
|
|
19
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<AllowedEventRetrieveResponse> {
|
|
20
|
+
return this._client.get(path`/rest/v1/allowed-events/${id}`, options);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* List all allowed events. Requires scope: allowedEvent:list
|
|
25
|
+
*/
|
|
26
|
+
list(options?: RequestOptions): APIPromise<AllowedEventListResponse> {
|
|
27
|
+
return this._client.get('/rest/v1/allowed-events', options);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Delete a allowed event. Requires scope: allowedEvent:delete
|
|
32
|
+
*/
|
|
33
|
+
delete(id: string, options?: RequestOptions): APIPromise<AllowedEventDeleteResponse> {
|
|
34
|
+
return this._client.delete(path`/rest/v1/allowed-events/${id}`, options);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface AllowedEventCreateResponse {
|
|
39
|
+
data?: unknown;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface AllowedEventRetrieveResponse {
|
|
43
|
+
data?: unknown;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface AllowedEventListResponse {
|
|
47
|
+
data?: unknown;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface AllowedEventDeleteResponse {
|
|
51
|
+
data?: unknown;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface AllowedEventCreateParams {}
|
|
55
|
+
|
|
56
|
+
export declare namespace AllowedEvents {
|
|
57
|
+
export {
|
|
58
|
+
type AllowedEventCreateResponse as AllowedEventCreateResponse,
|
|
59
|
+
type AllowedEventRetrieveResponse as AllowedEventRetrieveResponse,
|
|
60
|
+
type AllowedEventListResponse as AllowedEventListResponse,
|
|
61
|
+
type AllowedEventDeleteResponse as AllowedEventDeleteResponse,
|
|
62
|
+
type AllowedEventCreateParams as AllowedEventCreateParams,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
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
|
+
export class ConsentSettings extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create a new consent setting. Requires scope: consentSettings:create
|
|
11
|
+
*/
|
|
12
|
+
create(
|
|
13
|
+
body: ConsentSettingCreateParams,
|
|
14
|
+
options?: RequestOptions,
|
|
15
|
+
): APIPromise<ConsentSettingCreateResponse> {
|
|
16
|
+
return this._client.post('/rest/v1/consent-settings', { body, ...options });
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Find a single consent setting by ID. Requires scope: consentSettings:find
|
|
21
|
+
*/
|
|
22
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<ConsentSettingRetrieveResponse> {
|
|
23
|
+
return this._client.get(path`/rest/v1/consent-settings/${id}`, options);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Update a consent setting. Requires scope: consentSettings:update
|
|
28
|
+
*/
|
|
29
|
+
update(
|
|
30
|
+
id: string,
|
|
31
|
+
body: ConsentSettingUpdateParams,
|
|
32
|
+
options?: RequestOptions,
|
|
33
|
+
): APIPromise<ConsentSettingUpdateResponse> {
|
|
34
|
+
return this._client.patch(path`/rest/v1/consent-settings/${id}`, { body, ...options });
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* List all consent settings. Requires scope: consentSettings:list
|
|
39
|
+
*/
|
|
40
|
+
list(options?: RequestOptions): APIPromise<ConsentSettingListResponse> {
|
|
41
|
+
return this._client.get('/rest/v1/consent-settings', options);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Delete a consent setting. Requires scope: consentSettings:delete
|
|
46
|
+
*/
|
|
47
|
+
delete(id: string, options?: RequestOptions): APIPromise<ConsentSettingDeleteResponse> {
|
|
48
|
+
return this._client.delete(path`/rest/v1/consent-settings/${id}`, options);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface ConsentSettingCreateResponse {
|
|
53
|
+
data?: unknown;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface ConsentSettingRetrieveResponse {
|
|
57
|
+
data?: unknown;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface ConsentSettingUpdateResponse {
|
|
61
|
+
data?: unknown;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export interface ConsentSettingListResponse {
|
|
65
|
+
data?: unknown;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface ConsentSettingDeleteResponse {
|
|
69
|
+
data?: unknown;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export interface ConsentSettingCreateParams {}
|
|
73
|
+
|
|
74
|
+
export interface ConsentSettingUpdateParams {}
|
|
75
|
+
|
|
76
|
+
export declare namespace ConsentSettings {
|
|
77
|
+
export {
|
|
78
|
+
type ConsentSettingCreateResponse as ConsentSettingCreateResponse,
|
|
79
|
+
type ConsentSettingRetrieveResponse as ConsentSettingRetrieveResponse,
|
|
80
|
+
type ConsentSettingUpdateResponse as ConsentSettingUpdateResponse,
|
|
81
|
+
type ConsentSettingListResponse as ConsentSettingListResponse,
|
|
82
|
+
type ConsentSettingDeleteResponse as ConsentSettingDeleteResponse,
|
|
83
|
+
type ConsentSettingCreateParams as ConsentSettingCreateParams,
|
|
84
|
+
type ConsentSettingUpdateParams as ConsentSettingUpdateParams,
|
|
85
|
+
};
|
|
86
|
+
}
|
|
@@ -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
|
+
export class Destinations extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create a new destination. Requires scope: destination:create
|
|
11
|
+
*/
|
|
12
|
+
create(body: DestinationCreateParams, options?: RequestOptions): APIPromise<DestinationCreateResponse> {
|
|
13
|
+
return this._client.post('/rest/v1/destinations', { body, ...options });
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Find a single destination by ID. Requires scope: destination:find
|
|
18
|
+
*/
|
|
19
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<DestinationRetrieveResponse> {
|
|
20
|
+
return this._client.get(path`/rest/v1/destinations/${id}`, options);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Update a destination. Requires scope: destination:update
|
|
25
|
+
*/
|
|
26
|
+
update(
|
|
27
|
+
id: string,
|
|
28
|
+
body: DestinationUpdateParams,
|
|
29
|
+
options?: RequestOptions,
|
|
30
|
+
): APIPromise<DestinationUpdateResponse> {
|
|
31
|
+
return this._client.patch(path`/rest/v1/destinations/${id}`, { body, ...options });
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* List all destinations. Requires scope: destination:list
|
|
36
|
+
*/
|
|
37
|
+
list(options?: RequestOptions): APIPromise<DestinationListResponse> {
|
|
38
|
+
return this._client.get('/rest/v1/destinations', options);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Delete a destination. Requires scope: destination:delete
|
|
43
|
+
*/
|
|
44
|
+
delete(id: string, options?: RequestOptions): APIPromise<DestinationDeleteResponse> {
|
|
45
|
+
return this._client.delete(path`/rest/v1/destinations/${id}`, options);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface DestinationCreateResponse {
|
|
50
|
+
data?: unknown;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface DestinationRetrieveResponse {
|
|
54
|
+
data?: unknown;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface DestinationUpdateResponse {
|
|
58
|
+
data?: unknown;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface DestinationListResponse {
|
|
62
|
+
data?: unknown;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface DestinationDeleteResponse {
|
|
66
|
+
data?: unknown;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface DestinationCreateParams {}
|
|
70
|
+
|
|
71
|
+
export interface DestinationUpdateParams {}
|
|
72
|
+
|
|
73
|
+
export declare namespace Destinations {
|
|
74
|
+
export {
|
|
75
|
+
type DestinationCreateResponse as DestinationCreateResponse,
|
|
76
|
+
type DestinationRetrieveResponse as DestinationRetrieveResponse,
|
|
77
|
+
type DestinationUpdateResponse as DestinationUpdateResponse,
|
|
78
|
+
type DestinationListResponse as DestinationListResponse,
|
|
79
|
+
type DestinationDeleteResponse as DestinationDeleteResponse,
|
|
80
|
+
type DestinationCreateParams as DestinationCreateParams,
|
|
81
|
+
type DestinationUpdateParams as DestinationUpdateParams,
|
|
82
|
+
};
|
|
83
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
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
|
+
export class GlobalDispatchCenters extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create a new global dispatch center. Requires scope: globalDispatch:create
|
|
11
|
+
*/
|
|
12
|
+
create(
|
|
13
|
+
body: GlobalDispatchCenterCreateParams,
|
|
14
|
+
options?: RequestOptions,
|
|
15
|
+
): APIPromise<GlobalDispatchCenterCreateResponse> {
|
|
16
|
+
return this._client.post('/rest/v1/global-dispatch-centers', { body, ...options });
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Find a single global dispatch center by ID. Requires scope: globalDispatch:find
|
|
21
|
+
*/
|
|
22
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<GlobalDispatchCenterRetrieveResponse> {
|
|
23
|
+
return this._client.get(path`/rest/v1/global-dispatch-centers/${id}`, options);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Update a global dispatch center. Requires scope: globalDispatch:update
|
|
28
|
+
*/
|
|
29
|
+
update(
|
|
30
|
+
id: string,
|
|
31
|
+
body: GlobalDispatchCenterUpdateParams,
|
|
32
|
+
options?: RequestOptions,
|
|
33
|
+
): APIPromise<GlobalDispatchCenterUpdateResponse> {
|
|
34
|
+
return this._client.patch(path`/rest/v1/global-dispatch-centers/${id}`, { body, ...options });
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* List all global dispatch centers. Requires scope: globalDispatch:list
|
|
39
|
+
*/
|
|
40
|
+
list(options?: RequestOptions): APIPromise<GlobalDispatchCenterListResponse> {
|
|
41
|
+
return this._client.get('/rest/v1/global-dispatch-centers', options);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Delete a global dispatch center. Requires scope: globalDispatch:delete
|
|
46
|
+
*/
|
|
47
|
+
delete(id: string, options?: RequestOptions): APIPromise<GlobalDispatchCenterDeleteResponse> {
|
|
48
|
+
return this._client.delete(path`/rest/v1/global-dispatch-centers/${id}`, options);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface GlobalDispatchCenterCreateResponse {
|
|
53
|
+
data?: unknown;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface GlobalDispatchCenterRetrieveResponse {
|
|
57
|
+
data?: unknown;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface GlobalDispatchCenterUpdateResponse {
|
|
61
|
+
data?: unknown;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export interface GlobalDispatchCenterListResponse {
|
|
65
|
+
data?: unknown;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface GlobalDispatchCenterDeleteResponse {
|
|
69
|
+
data?: unknown;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export interface GlobalDispatchCenterCreateParams {}
|
|
73
|
+
|
|
74
|
+
export interface GlobalDispatchCenterUpdateParams {}
|
|
75
|
+
|
|
76
|
+
export declare namespace GlobalDispatchCenters {
|
|
77
|
+
export {
|
|
78
|
+
type GlobalDispatchCenterCreateResponse as GlobalDispatchCenterCreateResponse,
|
|
79
|
+
type GlobalDispatchCenterRetrieveResponse as GlobalDispatchCenterRetrieveResponse,
|
|
80
|
+
type GlobalDispatchCenterUpdateResponse as GlobalDispatchCenterUpdateResponse,
|
|
81
|
+
type GlobalDispatchCenterListResponse as GlobalDispatchCenterListResponse,
|
|
82
|
+
type GlobalDispatchCenterDeleteResponse as GlobalDispatchCenterDeleteResponse,
|
|
83
|
+
type GlobalDispatchCenterCreateParams as GlobalDispatchCenterCreateParams,
|
|
84
|
+
type GlobalDispatchCenterUpdateParams as GlobalDispatchCenterUpdateParams,
|
|
85
|
+
};
|
|
86
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
AllowedEvents,
|
|
5
|
+
type AllowedEventCreateResponse,
|
|
6
|
+
type AllowedEventRetrieveResponse,
|
|
7
|
+
type AllowedEventListResponse,
|
|
8
|
+
type AllowedEventDeleteResponse,
|
|
9
|
+
type AllowedEventCreateParams,
|
|
10
|
+
} from './allowed-events';
|
|
11
|
+
export {
|
|
12
|
+
ConsentSettings,
|
|
13
|
+
type ConsentSettingCreateResponse,
|
|
14
|
+
type ConsentSettingRetrieveResponse,
|
|
15
|
+
type ConsentSettingUpdateResponse,
|
|
16
|
+
type ConsentSettingListResponse,
|
|
17
|
+
type ConsentSettingDeleteResponse,
|
|
18
|
+
type ConsentSettingCreateParams,
|
|
19
|
+
type ConsentSettingUpdateParams,
|
|
20
|
+
} from './consent-settings';
|
|
21
|
+
export {
|
|
22
|
+
Destinations,
|
|
23
|
+
type DestinationCreateResponse,
|
|
24
|
+
type DestinationRetrieveResponse,
|
|
25
|
+
type DestinationUpdateResponse,
|
|
26
|
+
type DestinationListResponse,
|
|
27
|
+
type DestinationDeleteResponse,
|
|
28
|
+
type DestinationCreateParams,
|
|
29
|
+
type DestinationUpdateParams,
|
|
30
|
+
} from './destinations';
|
|
31
|
+
export {
|
|
32
|
+
GlobalDispatchCenters,
|
|
33
|
+
type GlobalDispatchCenterCreateResponse,
|
|
34
|
+
type GlobalDispatchCenterRetrieveResponse,
|
|
35
|
+
type GlobalDispatchCenterUpdateResponse,
|
|
36
|
+
type GlobalDispatchCenterListResponse,
|
|
37
|
+
type GlobalDispatchCenterDeleteResponse,
|
|
38
|
+
type GlobalDispatchCenterCreateParams,
|
|
39
|
+
type GlobalDispatchCenterUpdateParams,
|
|
40
|
+
} from './global-dispatch-centers';
|
|
41
|
+
export {
|
|
42
|
+
ReplaySettings,
|
|
43
|
+
type ReplaySettingCreateResponse,
|
|
44
|
+
type ReplaySettingRetrieveResponse,
|
|
45
|
+
type ReplaySettingUpdateResponse,
|
|
46
|
+
type ReplaySettingListResponse,
|
|
47
|
+
type ReplaySettingDeleteResponse,
|
|
48
|
+
type ReplaySettingCreateParams,
|
|
49
|
+
type ReplaySettingUpdateParams,
|
|
50
|
+
} from './replay-settings';
|
|
51
|
+
export {
|
|
52
|
+
Sources,
|
|
53
|
+
type SourceCreateResponse,
|
|
54
|
+
type SourceRetrieveResponse,
|
|
55
|
+
type SourceUpdateResponse,
|
|
56
|
+
type SourceListResponse,
|
|
57
|
+
type SourceDeleteResponse,
|
|
58
|
+
type SourceCreateParams,
|
|
59
|
+
type SourceUpdateParams,
|
|
60
|
+
} from './sources';
|
|
61
|
+
export {
|
|
62
|
+
Versions,
|
|
63
|
+
type VersionCreateResponse,
|
|
64
|
+
type VersionRetrieveResponse,
|
|
65
|
+
type VersionUpdateResponse,
|
|
66
|
+
type VersionListResponse,
|
|
67
|
+
type VersionCreateParams,
|
|
68
|
+
type VersionUpdateParams,
|
|
69
|
+
} from './versions';
|
|
@@ -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
|
+
export class ReplaySettings extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create a new replay setting. Requires scope: replaySettings:create
|
|
11
|
+
*/
|
|
12
|
+
create(body: ReplaySettingCreateParams, options?: RequestOptions): APIPromise<ReplaySettingCreateResponse> {
|
|
13
|
+
return this._client.post('/rest/v1/replay-settings', { body, ...options });
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Find a single replay setting by ID. Requires scope: replaySettings:find
|
|
18
|
+
*/
|
|
19
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<ReplaySettingRetrieveResponse> {
|
|
20
|
+
return this._client.get(path`/rest/v1/replay-settings/${id}`, options);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Update a replay setting. Requires scope: replaySettings:update
|
|
25
|
+
*/
|
|
26
|
+
update(
|
|
27
|
+
id: string,
|
|
28
|
+
body: ReplaySettingUpdateParams,
|
|
29
|
+
options?: RequestOptions,
|
|
30
|
+
): APIPromise<ReplaySettingUpdateResponse> {
|
|
31
|
+
return this._client.patch(path`/rest/v1/replay-settings/${id}`, { body, ...options });
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* List all replay settings. Requires scope: replaySettings:list
|
|
36
|
+
*/
|
|
37
|
+
list(options?: RequestOptions): APIPromise<ReplaySettingListResponse> {
|
|
38
|
+
return this._client.get('/rest/v1/replay-settings', options);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Delete a replay setting. Requires scope: replaySettings:delete
|
|
43
|
+
*/
|
|
44
|
+
delete(id: string, options?: RequestOptions): APIPromise<ReplaySettingDeleteResponse> {
|
|
45
|
+
return this._client.delete(path`/rest/v1/replay-settings/${id}`, options);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface ReplaySettingCreateResponse {
|
|
50
|
+
data?: unknown;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface ReplaySettingRetrieveResponse {
|
|
54
|
+
data?: unknown;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface ReplaySettingUpdateResponse {
|
|
58
|
+
data?: unknown;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface ReplaySettingListResponse {
|
|
62
|
+
data?: unknown;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface ReplaySettingDeleteResponse {
|
|
66
|
+
data?: unknown;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface ReplaySettingCreateParams {}
|
|
70
|
+
|
|
71
|
+
export interface ReplaySettingUpdateParams {}
|
|
72
|
+
|
|
73
|
+
export declare namespace ReplaySettings {
|
|
74
|
+
export {
|
|
75
|
+
type ReplaySettingCreateResponse as ReplaySettingCreateResponse,
|
|
76
|
+
type ReplaySettingRetrieveResponse as ReplaySettingRetrieveResponse,
|
|
77
|
+
type ReplaySettingUpdateResponse as ReplaySettingUpdateResponse,
|
|
78
|
+
type ReplaySettingListResponse as ReplaySettingListResponse,
|
|
79
|
+
type ReplaySettingDeleteResponse as ReplaySettingDeleteResponse,
|
|
80
|
+
type ReplaySettingCreateParams as ReplaySettingCreateParams,
|
|
81
|
+
type ReplaySettingUpdateParams as ReplaySettingUpdateParams,
|
|
82
|
+
};
|
|
83
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
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
|
+
export class Sources extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create a new source. Requires scope: source:create
|
|
11
|
+
*/
|
|
12
|
+
create(body: SourceCreateParams, options?: RequestOptions): APIPromise<SourceCreateResponse> {
|
|
13
|
+
return this._client.post('/rest/v1/sources', { body, ...options });
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Find a single source by ID. Requires scope: source:view
|
|
18
|
+
*/
|
|
19
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<SourceRetrieveResponse> {
|
|
20
|
+
return this._client.get(path`/rest/v1/sources/${id}`, options);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Update a source. Requires scope: source:update
|
|
25
|
+
*/
|
|
26
|
+
update(id: string, body: SourceUpdateParams, options?: RequestOptions): APIPromise<SourceUpdateResponse> {
|
|
27
|
+
return this._client.patch(path`/rest/v1/sources/${id}`, { body, ...options });
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* List all sources. Requires scope: source:list
|
|
32
|
+
*/
|
|
33
|
+
list(options?: RequestOptions): APIPromise<SourceListResponse> {
|
|
34
|
+
return this._client.get('/rest/v1/sources', options);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Delete a source. Requires scope: source:delete
|
|
39
|
+
*/
|
|
40
|
+
delete(id: string, options?: RequestOptions): APIPromise<SourceDeleteResponse> {
|
|
41
|
+
return this._client.delete(path`/rest/v1/sources/${id}`, options);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export interface SourceCreateResponse {
|
|
46
|
+
data?: unknown;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface SourceRetrieveResponse {
|
|
50
|
+
data?: unknown;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface SourceUpdateResponse {
|
|
54
|
+
data?: unknown;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface SourceListResponse {
|
|
58
|
+
data?: unknown;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface SourceDeleteResponse {
|
|
62
|
+
data?: unknown;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface SourceCreateParams {}
|
|
66
|
+
|
|
67
|
+
export interface SourceUpdateParams {}
|
|
68
|
+
|
|
69
|
+
export declare namespace Sources {
|
|
70
|
+
export {
|
|
71
|
+
type SourceCreateResponse as SourceCreateResponse,
|
|
72
|
+
type SourceRetrieveResponse as SourceRetrieveResponse,
|
|
73
|
+
type SourceUpdateResponse as SourceUpdateResponse,
|
|
74
|
+
type SourceListResponse as SourceListResponse,
|
|
75
|
+
type SourceDeleteResponse as SourceDeleteResponse,
|
|
76
|
+
type SourceCreateParams as SourceCreateParams,
|
|
77
|
+
type SourceUpdateParams as SourceUpdateParams,
|
|
78
|
+
};
|
|
79
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
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
|
+
export class Versions extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create a new version. Requires scope: version:publish
|
|
11
|
+
*/
|
|
12
|
+
create(body: VersionCreateParams, options?: RequestOptions): APIPromise<VersionCreateResponse> {
|
|
13
|
+
return this._client.post('/rest/v1/versions', { body, ...options });
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Find a single version by ID. Requires scope: version:find
|
|
18
|
+
*/
|
|
19
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<VersionRetrieveResponse> {
|
|
20
|
+
return this._client.get(path`/rest/v1/versions/${id}`, options);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Update a version. Requires scope: version:update
|
|
25
|
+
*/
|
|
26
|
+
update(id: string, body: VersionUpdateParams, options?: RequestOptions): APIPromise<VersionUpdateResponse> {
|
|
27
|
+
return this._client.patch(path`/rest/v1/versions/${id}`, { body, ...options });
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* List all versions. Requires scope: version:list
|
|
32
|
+
*/
|
|
33
|
+
list(options?: RequestOptions): APIPromise<VersionListResponse> {
|
|
34
|
+
return this._client.get('/rest/v1/versions', options);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface VersionCreateResponse {
|
|
39
|
+
data?: unknown;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface VersionRetrieveResponse {
|
|
43
|
+
data?: unknown;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface VersionUpdateResponse {
|
|
47
|
+
data?: unknown;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface VersionListResponse {
|
|
51
|
+
data?: unknown;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface VersionCreateParams {}
|
|
55
|
+
|
|
56
|
+
export interface VersionUpdateParams {}
|
|
57
|
+
|
|
58
|
+
export declare namespace Versions {
|
|
59
|
+
export {
|
|
60
|
+
type VersionCreateResponse as VersionCreateResponse,
|
|
61
|
+
type VersionRetrieveResponse as VersionRetrieveResponse,
|
|
62
|
+
type VersionUpdateResponse as VersionUpdateResponse,
|
|
63
|
+
type VersionListResponse as VersionListResponse,
|
|
64
|
+
type VersionCreateParams as VersionCreateParams,
|
|
65
|
+
type VersionUpdateParams as VersionUpdateParams,
|
|
66
|
+
};
|
|
67
|
+
}
|
package/src/resources.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './resources/index';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
// this config is included in the published src directory to prevent TS errors
|
|
3
|
+
// from appearing when users go to source, and VSCode opens the source .ts file
|
|
4
|
+
// via declaration maps
|
|
5
|
+
"include": ["index.ts"],
|
|
6
|
+
"compilerOptions": {
|
|
7
|
+
"target": "ES2015",
|
|
8
|
+
"lib": ["DOM", "DOM.Iterable", "ES2018"],
|
|
9
|
+
"moduleResolution": "node"
|
|
10
|
+
}
|
|
11
|
+
}
|
package/src/uploads.ts
ADDED
package/src/version.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const VERSION = '1.0.0'; // x-release-please-version
|
package/uploads.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uploads.d.mts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
|
package/uploads.d.ts
ADDED
package/uploads.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
|
package/uploads.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("./internal/tslib.js");
|
|
4
|
+
/** @deprecated Import from ./core/uploads instead */
|
|
5
|
+
tslib_1.__exportStar(require("./core/uploads.js"), exports);
|
|
6
|
+
//# sourceMappingURL=uploads.js.map
|
package/uploads.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uploads.js","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":";;;AAAA,qDAAqD;AACrD,4DAA+B"}
|
package/uploads.mjs
ADDED
package/uploads.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uploads.mjs","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
|
package/version.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAU,CAAC"}
|