@stigg/typescript 0.1.0-beta.35 → 0.1.0-beta.37
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 +16 -0
- package/client.d.mts +1 -1
- package/client.d.ts +1 -1
- package/client.js +3 -3
- package/client.js.map +1 -1
- package/client.mjs +3 -3
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/v1/credits/consumption.d.mts +196 -0
- package/resources/v1/credits/consumption.d.mts.map +1 -0
- package/resources/v1/credits/consumption.d.ts +196 -0
- package/resources/v1/credits/consumption.d.ts.map +1 -0
- package/resources/v1/credits/consumption.js +46 -0
- package/resources/v1/credits/consumption.js.map +1 -0
- package/resources/v1/credits/consumption.mjs +42 -0
- package/resources/v1/credits/consumption.mjs.map +1 -0
- package/resources/v1/credits/credits.d.mts +4 -0
- package/resources/v1/credits/credits.d.mts.map +1 -1
- package/resources/v1/credits/credits.d.ts +4 -0
- package/resources/v1/credits/credits.d.ts.map +1 -1
- package/resources/v1/credits/credits.js +4 -0
- package/resources/v1/credits/credits.js.map +1 -1
- package/resources/v1/credits/credits.mjs +4 -0
- package/resources/v1/credits/credits.mjs.map +1 -1
- package/resources/v1/credits/index.d.mts +1 -0
- package/resources/v1/credits/index.d.mts.map +1 -1
- package/resources/v1/credits/index.d.ts +1 -0
- package/resources/v1/credits/index.d.ts.map +1 -1
- package/resources/v1/credits/index.js +3 -1
- package/resources/v1/credits/index.js.map +1 -1
- package/resources/v1/credits/index.mjs +1 -0
- package/resources/v1/credits/index.mjs.map +1 -1
- package/resources/v1/events/beta/customers.d.mts +3 -3
- package/resources/v1/events/beta/customers.d.mts.map +1 -1
- package/resources/v1/events/beta/customers.d.ts +3 -3
- package/resources/v1/events/beta/customers.d.ts.map +1 -1
- package/resources/v1-beta/customers/assignments.d.mts +22 -24
- package/resources/v1-beta/customers/assignments.d.mts.map +1 -1
- package/resources/v1-beta/customers/assignments.d.ts +22 -24
- package/resources/v1-beta/customers/assignments.d.ts.map +1 -1
- package/resources/v1-beta/customers/entities.d.mts +25 -25
- package/resources/v1-beta/customers/entities.d.mts.map +1 -1
- package/resources/v1-beta/customers/entities.d.ts +25 -25
- package/resources/v1-beta/customers/entities.d.ts.map +1 -1
- package/resources/v1-beta/customers/entities.js +2 -2
- package/resources/v1-beta/customers/entities.mjs +2 -2
- package/src/client.ts +3 -3
- package/src/resources/v1/credits/consumption.ts +266 -0
- package/src/resources/v1/credits/credits.ts +18 -0
- package/src/resources/v1/credits/index.ts +7 -0
- package/src/resources/v1/events/beta/customers.ts +3 -3
- package/src/resources/v1-beta/customers/assignments.ts +22 -24
- package/src/resources/v1-beta/customers/entities.ts +26 -26
- 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
|
@@ -71,18 +71,17 @@ export interface AssignmentListResponse {
|
|
|
71
71
|
*/
|
|
72
72
|
createdAt: string;
|
|
73
73
|
/**
|
|
74
|
-
* The entity
|
|
74
|
+
* The entity ID this assignment is attached to
|
|
75
75
|
*/
|
|
76
76
|
entityId: string;
|
|
77
77
|
/**
|
|
78
|
-
* Parent entity
|
|
78
|
+
* Parent entity ID in the hierarchy, or `null` for a root.
|
|
79
79
|
*/
|
|
80
80
|
parentId: string | null;
|
|
81
81
|
/**
|
|
82
|
-
* Dimension-scoped sub-budget key: the set of entity
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
* (order-insensitive).
|
|
82
|
+
* Dimension-scoped sub-budget key: the set of entity IDs this budget applies to.
|
|
83
|
+
* Empty is the node-wide budget that always matches; a non-empty set only applies
|
|
84
|
+
* when every listed entity is present in the resolved set (order-insensitive).
|
|
86
85
|
*/
|
|
87
86
|
scopeEntityIds: Array<string>;
|
|
88
87
|
/**
|
|
@@ -94,11 +93,11 @@ export interface AssignmentListResponse {
|
|
|
94
93
|
*/
|
|
95
94
|
usageLimit: number | null;
|
|
96
95
|
/**
|
|
97
|
-
* Currency
|
|
96
|
+
* Currency ID this assignment grants (present for credit capabilities).
|
|
98
97
|
*/
|
|
99
98
|
currencyId?: string;
|
|
100
99
|
/**
|
|
101
|
-
* Feature
|
|
100
|
+
* Feature ID this assignment grants (present for feature capabilities).
|
|
102
101
|
*/
|
|
103
102
|
featureId?: string;
|
|
104
103
|
}
|
|
@@ -129,18 +128,17 @@ export declare namespace AssignmentUpsertResponse {
|
|
|
129
128
|
*/
|
|
130
129
|
createdAt: string;
|
|
131
130
|
/**
|
|
132
|
-
* The entity
|
|
131
|
+
* The entity ID this assignment is attached to
|
|
133
132
|
*/
|
|
134
133
|
entityId: string;
|
|
135
134
|
/**
|
|
136
|
-
* Parent entity
|
|
135
|
+
* Parent entity ID in the hierarchy, or `null` for a root.
|
|
137
136
|
*/
|
|
138
137
|
parentId: string | null;
|
|
139
138
|
/**
|
|
140
|
-
* Dimension-scoped sub-budget key: the set of entity
|
|
141
|
-
*
|
|
142
|
-
*
|
|
143
|
-
* (order-insensitive).
|
|
139
|
+
* Dimension-scoped sub-budget key: the set of entity IDs this budget applies to.
|
|
140
|
+
* Empty is the node-wide budget that always matches; a non-empty set only applies
|
|
141
|
+
* when every listed entity is present in the resolved set (order-insensitive).
|
|
144
142
|
*/
|
|
145
143
|
scopeEntityIds: Array<string>;
|
|
146
144
|
/**
|
|
@@ -152,22 +150,22 @@ export declare namespace AssignmentUpsertResponse {
|
|
|
152
150
|
*/
|
|
153
151
|
usageLimit: number | null;
|
|
154
152
|
/**
|
|
155
|
-
* Currency
|
|
153
|
+
* Currency ID this assignment grants (present for credit capabilities).
|
|
156
154
|
*/
|
|
157
155
|
currencyId?: string;
|
|
158
156
|
/**
|
|
159
|
-
* Feature
|
|
157
|
+
* Feature ID this assignment grants (present for feature capabilities).
|
|
160
158
|
*/
|
|
161
159
|
featureId?: string;
|
|
162
160
|
}
|
|
163
161
|
}
|
|
164
162
|
export interface AssignmentListParams extends MyCursorIDPageParams {
|
|
165
163
|
/**
|
|
166
|
-
* Query param: Filter assignments to a specific capability
|
|
164
|
+
* Query param: Filter assignments to a specific capability ID
|
|
167
165
|
*/
|
|
168
166
|
capabilityId?: string;
|
|
169
167
|
/**
|
|
170
|
-
* Query param: Filter assignments to a specific entity
|
|
168
|
+
* Query param: Filter assignments to a specific entity ID
|
|
171
169
|
*/
|
|
172
170
|
entityId?: string;
|
|
173
171
|
/**
|
|
@@ -209,7 +207,7 @@ export declare namespace AssignmentUpsertParams {
|
|
|
209
207
|
*/
|
|
210
208
|
interface Assignment {
|
|
211
209
|
/**
|
|
212
|
-
* The entity
|
|
210
|
+
* The entity ID this assignment is attached to
|
|
213
211
|
*/
|
|
214
212
|
entityId: string;
|
|
215
213
|
/**
|
|
@@ -218,18 +216,18 @@ export declare namespace AssignmentUpsertParams {
|
|
|
218
216
|
*/
|
|
219
217
|
cadence?: string;
|
|
220
218
|
/**
|
|
221
|
-
* Currency
|
|
219
|
+
* Currency ID this assignment grants (credit budgets). Mutually exclusive with
|
|
222
220
|
* `featureId`.
|
|
223
221
|
*/
|
|
224
222
|
currencyId?: string;
|
|
225
223
|
/**
|
|
226
|
-
* Feature
|
|
224
|
+
* Feature ID this assignment grants. Mutually exclusive with `currencyId`.
|
|
227
225
|
*/
|
|
228
226
|
featureId?: string;
|
|
229
227
|
/**
|
|
230
|
-
* Parent entity
|
|
231
|
-
*
|
|
232
|
-
*
|
|
228
|
+
* Parent entity ID in the hierarchy. Omit to leave the current parent untouched (a
|
|
229
|
+
* new node defaults to a root); `null` detaches to a root; an ID sets or changes
|
|
230
|
+
* the parent. Reparenting an existing node is leaf-only.
|
|
233
231
|
*/
|
|
234
232
|
parentId?: string | null;
|
|
235
233
|
scopeEntityIds?: Array<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assignments.d.mts","sourceRoot":"","sources":["../../../src/resources/v1-beta/customers/assignments.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO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EAAE,MAAM,GAAG,IAAI,CAAC;KAC5B;CACF;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -71,18 +71,17 @@ export interface AssignmentListResponse {
|
|
|
71
71
|
*/
|
|
72
72
|
createdAt: string;
|
|
73
73
|
/**
|
|
74
|
-
* The entity
|
|
74
|
+
* The entity ID this assignment is attached to
|
|
75
75
|
*/
|
|
76
76
|
entityId: string;
|
|
77
77
|
/**
|
|
78
|
-
* Parent entity
|
|
78
|
+
* Parent entity ID in the hierarchy, or `null` for a root.
|
|
79
79
|
*/
|
|
80
80
|
parentId: string | null;
|
|
81
81
|
/**
|
|
82
|
-
* Dimension-scoped sub-budget key: the set of entity
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
* (order-insensitive).
|
|
82
|
+
* Dimension-scoped sub-budget key: the set of entity IDs this budget applies to.
|
|
83
|
+
* Empty is the node-wide budget that always matches; a non-empty set only applies
|
|
84
|
+
* when every listed entity is present in the resolved set (order-insensitive).
|
|
86
85
|
*/
|
|
87
86
|
scopeEntityIds: Array<string>;
|
|
88
87
|
/**
|
|
@@ -94,11 +93,11 @@ export interface AssignmentListResponse {
|
|
|
94
93
|
*/
|
|
95
94
|
usageLimit: number | null;
|
|
96
95
|
/**
|
|
97
|
-
* Currency
|
|
96
|
+
* Currency ID this assignment grants (present for credit capabilities).
|
|
98
97
|
*/
|
|
99
98
|
currencyId?: string;
|
|
100
99
|
/**
|
|
101
|
-
* Feature
|
|
100
|
+
* Feature ID this assignment grants (present for feature capabilities).
|
|
102
101
|
*/
|
|
103
102
|
featureId?: string;
|
|
104
103
|
}
|
|
@@ -129,18 +128,17 @@ export declare namespace AssignmentUpsertResponse {
|
|
|
129
128
|
*/
|
|
130
129
|
createdAt: string;
|
|
131
130
|
/**
|
|
132
|
-
* The entity
|
|
131
|
+
* The entity ID this assignment is attached to
|
|
133
132
|
*/
|
|
134
133
|
entityId: string;
|
|
135
134
|
/**
|
|
136
|
-
* Parent entity
|
|
135
|
+
* Parent entity ID in the hierarchy, or `null` for a root.
|
|
137
136
|
*/
|
|
138
137
|
parentId: string | null;
|
|
139
138
|
/**
|
|
140
|
-
* Dimension-scoped sub-budget key: the set of entity
|
|
141
|
-
*
|
|
142
|
-
*
|
|
143
|
-
* (order-insensitive).
|
|
139
|
+
* Dimension-scoped sub-budget key: the set of entity IDs this budget applies to.
|
|
140
|
+
* Empty is the node-wide budget that always matches; a non-empty set only applies
|
|
141
|
+
* when every listed entity is present in the resolved set (order-insensitive).
|
|
144
142
|
*/
|
|
145
143
|
scopeEntityIds: Array<string>;
|
|
146
144
|
/**
|
|
@@ -152,22 +150,22 @@ export declare namespace AssignmentUpsertResponse {
|
|
|
152
150
|
*/
|
|
153
151
|
usageLimit: number | null;
|
|
154
152
|
/**
|
|
155
|
-
* Currency
|
|
153
|
+
* Currency ID this assignment grants (present for credit capabilities).
|
|
156
154
|
*/
|
|
157
155
|
currencyId?: string;
|
|
158
156
|
/**
|
|
159
|
-
* Feature
|
|
157
|
+
* Feature ID this assignment grants (present for feature capabilities).
|
|
160
158
|
*/
|
|
161
159
|
featureId?: string;
|
|
162
160
|
}
|
|
163
161
|
}
|
|
164
162
|
export interface AssignmentListParams extends MyCursorIDPageParams {
|
|
165
163
|
/**
|
|
166
|
-
* Query param: Filter assignments to a specific capability
|
|
164
|
+
* Query param: Filter assignments to a specific capability ID
|
|
167
165
|
*/
|
|
168
166
|
capabilityId?: string;
|
|
169
167
|
/**
|
|
170
|
-
* Query param: Filter assignments to a specific entity
|
|
168
|
+
* Query param: Filter assignments to a specific entity ID
|
|
171
169
|
*/
|
|
172
170
|
entityId?: string;
|
|
173
171
|
/**
|
|
@@ -209,7 +207,7 @@ export declare namespace AssignmentUpsertParams {
|
|
|
209
207
|
*/
|
|
210
208
|
interface Assignment {
|
|
211
209
|
/**
|
|
212
|
-
* The entity
|
|
210
|
+
* The entity ID this assignment is attached to
|
|
213
211
|
*/
|
|
214
212
|
entityId: string;
|
|
215
213
|
/**
|
|
@@ -218,18 +216,18 @@ export declare namespace AssignmentUpsertParams {
|
|
|
218
216
|
*/
|
|
219
217
|
cadence?: string;
|
|
220
218
|
/**
|
|
221
|
-
* Currency
|
|
219
|
+
* Currency ID this assignment grants (credit budgets). Mutually exclusive with
|
|
222
220
|
* `featureId`.
|
|
223
221
|
*/
|
|
224
222
|
currencyId?: string;
|
|
225
223
|
/**
|
|
226
|
-
* Feature
|
|
224
|
+
* Feature ID this assignment grants. Mutually exclusive with `currencyId`.
|
|
227
225
|
*/
|
|
228
226
|
featureId?: string;
|
|
229
227
|
/**
|
|
230
|
-
* Parent entity
|
|
231
|
-
*
|
|
232
|
-
*
|
|
228
|
+
* Parent entity ID in the hierarchy. Omit to leave the current parent untouched (a
|
|
229
|
+
* new node defaults to a root); `null` detaches to a root; an ID sets or changes
|
|
230
|
+
* the parent. Reparenting an existing node is leaf-only.
|
|
233
231
|
*/
|
|
234
232
|
parentId?: string | null;
|
|
235
233
|
scopeEntityIds?: Array<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assignments.d.ts","sourceRoot":"","sources":["../../../src/resources/v1-beta/customers/assignments.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE,oCAAiC;AAElG,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;;OAcG;IACH,IAAI,CACF,EAAE,EAAE,MAAM,EACV,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,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -64,12 +64,12 @@ export declare class Entities extends APIResource {
|
|
|
64
64
|
* entities: [
|
|
65
65
|
* {
|
|
66
66
|
* id: 'user-7f3a0c1d',
|
|
67
|
-
*
|
|
67
|
+
* entityTypeId: 'user',
|
|
68
68
|
* metadata: { email: 'jane@acme.com', role: 'admin' },
|
|
69
69
|
* },
|
|
70
70
|
* {
|
|
71
71
|
* id: 'user-c4d1b2e9',
|
|
72
|
-
*
|
|
72
|
+
* entityTypeId: 'user',
|
|
73
73
|
* metadata: { email: 'john@acme.com' },
|
|
74
74
|
* },
|
|
75
75
|
* ],
|
|
@@ -105,16 +105,16 @@ export declare namespace EntityRetrieveResponse {
|
|
|
105
105
|
* Timestamp of when the record was created
|
|
106
106
|
*/
|
|
107
107
|
createdAt: string;
|
|
108
|
+
/**
|
|
109
|
+
* The entity type identifier this entity instantiates
|
|
110
|
+
*/
|
|
111
|
+
entityTypeId: string;
|
|
108
112
|
/**
|
|
109
113
|
* Free-form key/value metadata attached to the entity
|
|
110
114
|
*/
|
|
111
115
|
metadata: {
|
|
112
116
|
[key: string]: string;
|
|
113
117
|
};
|
|
114
|
-
/**
|
|
115
|
-
* The entity type identifier this entity instantiates
|
|
116
|
-
*/
|
|
117
|
-
typeId: string;
|
|
118
118
|
/**
|
|
119
119
|
* Timestamp of when the record was last updated
|
|
120
120
|
*/
|
|
@@ -137,16 +137,16 @@ export interface EntityListResponse {
|
|
|
137
137
|
* Timestamp of when the record was created
|
|
138
138
|
*/
|
|
139
139
|
createdAt: string;
|
|
140
|
+
/**
|
|
141
|
+
* The entity type identifier this entity instantiates
|
|
142
|
+
*/
|
|
143
|
+
entityTypeId: string;
|
|
140
144
|
/**
|
|
141
145
|
* Free-form key/value metadata attached to the entity
|
|
142
146
|
*/
|
|
143
147
|
metadata: {
|
|
144
148
|
[key: string]: string;
|
|
145
149
|
};
|
|
146
|
-
/**
|
|
147
|
-
* The entity type identifier this entity instantiates
|
|
148
|
-
*/
|
|
149
|
-
typeId: string;
|
|
150
150
|
/**
|
|
151
151
|
* Timestamp of when the record was last updated
|
|
152
152
|
*/
|
|
@@ -215,16 +215,16 @@ export declare namespace EntityUpsertResponse {
|
|
|
215
215
|
* Timestamp of when the record was created
|
|
216
216
|
*/
|
|
217
217
|
createdAt: string;
|
|
218
|
+
/**
|
|
219
|
+
* The entity type identifier this entity instantiates
|
|
220
|
+
*/
|
|
221
|
+
entityTypeId: string;
|
|
218
222
|
/**
|
|
219
223
|
* Free-form key/value metadata attached to the entity
|
|
220
224
|
*/
|
|
221
225
|
metadata: {
|
|
222
226
|
[key: string]: string;
|
|
223
227
|
};
|
|
224
|
-
/**
|
|
225
|
-
* The entity type identifier this entity instantiates
|
|
226
|
-
*/
|
|
227
|
-
typeId: string;
|
|
228
228
|
/**
|
|
229
229
|
* Timestamp of when the record was last updated
|
|
230
230
|
*/
|
|
@@ -250,14 +250,14 @@ export interface EntityRetrieveParams {
|
|
|
250
250
|
}
|
|
251
251
|
export interface EntityListParams extends MyCursorIDPageParams {
|
|
252
252
|
/**
|
|
253
|
-
* Query param:
|
|
253
|
+
* Query param: Filter results to entities of a specific entity type, by the type's
|
|
254
|
+
* ID
|
|
254
255
|
*/
|
|
255
|
-
|
|
256
|
+
entityTypeId?: string;
|
|
256
257
|
/**
|
|
257
|
-
* Query param:
|
|
258
|
-
* refId
|
|
258
|
+
* Query param: Whether to include archived entities. One of: true, false
|
|
259
259
|
*/
|
|
260
|
-
|
|
260
|
+
includeArchived?: 'true' | 'false';
|
|
261
261
|
/**
|
|
262
262
|
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
263
263
|
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
@@ -330,6 +330,12 @@ export declare namespace EntityUpsertParams {
|
|
|
330
330
|
* The unique identifier for the entity
|
|
331
331
|
*/
|
|
332
332
|
id: string;
|
|
333
|
+
/**
|
|
334
|
+
* The entity type ID this entity instantiates. Required when creating a new
|
|
335
|
+
* entity; on a re-upsert may be omitted to preserve the existing type. Governance
|
|
336
|
+
* returns 400 if missing on create.
|
|
337
|
+
*/
|
|
338
|
+
entityTypeId?: string;
|
|
333
339
|
/**
|
|
334
340
|
* Free-form key/value metadata. Patch semantics: empty-string value removes a key,
|
|
335
341
|
* omitted keys are preserved.
|
|
@@ -337,12 +343,6 @@ export declare namespace EntityUpsertParams {
|
|
|
337
343
|
metadata?: {
|
|
338
344
|
[key: string]: string;
|
|
339
345
|
};
|
|
340
|
-
/**
|
|
341
|
-
* The entity type refId this entity instantiates. Required when creating a new
|
|
342
|
-
* entity; on a re-upsert may be omitted to preserve the existing type. Governance
|
|
343
|
-
* returns 400 if missing on create.
|
|
344
|
-
*/
|
|
345
|
-
typeRefId?: string;
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
export declare namespace Entities {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.d.mts","sourceRoot":"","sources":["../../../src/resources/v1-beta/customers/entities.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE,qCAAiC;AAElG,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;OAUG;IACH,QAAQ,CACN,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,oBAAoB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;IAcrC;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,iCAAiC,EAAE,kBAAkB,CAAC;IAmBrE;;;;;;;;;;OAUG;IACH,OAAO,CACL,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,mBAAmB,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qBAAqB,CAAC;IAepC;;;;;;;;;;OAUG;IACH,SAAS,CACP,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,qBAAqB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC;IAetC;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;CAc3G;AAED,MAAM,MAAM,iCAAiC,GAAG,cAAc,CAAC,kBAAkB,CAAC,CAAC;AAEnF;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,IAAI,EAAE,sBAAsB,CAAC,IAAI,CAAC;CACnC;AAED,yBAAiB,sBAAsB,CAAC;IACtC;;OAEG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;QAE1B;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,QAAQ,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;SAAE,CAAC;QAEpC;;WAEG;QACH,
|
|
1
|
+
{"version":3,"file":"entities.d.mts","sourceRoot":"","sources":["../../../src/resources/v1-beta/customers/entities.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE,qCAAiC;AAElG,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE,qBAAa,QAAS,SAAQ,WA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,CAAC;CAC7B;AAED,yBAAiB,kBAAkB,CAAC;IAClC;;OAEG;IACH,UAAiB,MAAM;QACrB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;;;WAIG;QACH,YAAY,CAAC,EAAE,MAAM,CAAC;QAEtB;;;WAGG;QACH,QAAQ,CAAC,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;SAAE,CAAC;KACtC;CACF;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -64,12 +64,12 @@ export declare class Entities extends APIResource {
|
|
|
64
64
|
* entities: [
|
|
65
65
|
* {
|
|
66
66
|
* id: 'user-7f3a0c1d',
|
|
67
|
-
*
|
|
67
|
+
* entityTypeId: 'user',
|
|
68
68
|
* metadata: { email: 'jane@acme.com', role: 'admin' },
|
|
69
69
|
* },
|
|
70
70
|
* {
|
|
71
71
|
* id: 'user-c4d1b2e9',
|
|
72
|
-
*
|
|
72
|
+
* entityTypeId: 'user',
|
|
73
73
|
* metadata: { email: 'john@acme.com' },
|
|
74
74
|
* },
|
|
75
75
|
* ],
|
|
@@ -105,16 +105,16 @@ export declare namespace EntityRetrieveResponse {
|
|
|
105
105
|
* Timestamp of when the record was created
|
|
106
106
|
*/
|
|
107
107
|
createdAt: string;
|
|
108
|
+
/**
|
|
109
|
+
* The entity type identifier this entity instantiates
|
|
110
|
+
*/
|
|
111
|
+
entityTypeId: string;
|
|
108
112
|
/**
|
|
109
113
|
* Free-form key/value metadata attached to the entity
|
|
110
114
|
*/
|
|
111
115
|
metadata: {
|
|
112
116
|
[key: string]: string;
|
|
113
117
|
};
|
|
114
|
-
/**
|
|
115
|
-
* The entity type identifier this entity instantiates
|
|
116
|
-
*/
|
|
117
|
-
typeId: string;
|
|
118
118
|
/**
|
|
119
119
|
* Timestamp of when the record was last updated
|
|
120
120
|
*/
|
|
@@ -137,16 +137,16 @@ export interface EntityListResponse {
|
|
|
137
137
|
* Timestamp of when the record was created
|
|
138
138
|
*/
|
|
139
139
|
createdAt: string;
|
|
140
|
+
/**
|
|
141
|
+
* The entity type identifier this entity instantiates
|
|
142
|
+
*/
|
|
143
|
+
entityTypeId: string;
|
|
140
144
|
/**
|
|
141
145
|
* Free-form key/value metadata attached to the entity
|
|
142
146
|
*/
|
|
143
147
|
metadata: {
|
|
144
148
|
[key: string]: string;
|
|
145
149
|
};
|
|
146
|
-
/**
|
|
147
|
-
* The entity type identifier this entity instantiates
|
|
148
|
-
*/
|
|
149
|
-
typeId: string;
|
|
150
150
|
/**
|
|
151
151
|
* Timestamp of when the record was last updated
|
|
152
152
|
*/
|
|
@@ -215,16 +215,16 @@ export declare namespace EntityUpsertResponse {
|
|
|
215
215
|
* Timestamp of when the record was created
|
|
216
216
|
*/
|
|
217
217
|
createdAt: string;
|
|
218
|
+
/**
|
|
219
|
+
* The entity type identifier this entity instantiates
|
|
220
|
+
*/
|
|
221
|
+
entityTypeId: string;
|
|
218
222
|
/**
|
|
219
223
|
* Free-form key/value metadata attached to the entity
|
|
220
224
|
*/
|
|
221
225
|
metadata: {
|
|
222
226
|
[key: string]: string;
|
|
223
227
|
};
|
|
224
|
-
/**
|
|
225
|
-
* The entity type identifier this entity instantiates
|
|
226
|
-
*/
|
|
227
|
-
typeId: string;
|
|
228
228
|
/**
|
|
229
229
|
* Timestamp of when the record was last updated
|
|
230
230
|
*/
|
|
@@ -250,14 +250,14 @@ export interface EntityRetrieveParams {
|
|
|
250
250
|
}
|
|
251
251
|
export interface EntityListParams extends MyCursorIDPageParams {
|
|
252
252
|
/**
|
|
253
|
-
* Query param:
|
|
253
|
+
* Query param: Filter results to entities of a specific entity type, by the type's
|
|
254
|
+
* ID
|
|
254
255
|
*/
|
|
255
|
-
|
|
256
|
+
entityTypeId?: string;
|
|
256
257
|
/**
|
|
257
|
-
* Query param:
|
|
258
|
-
* refId
|
|
258
|
+
* Query param: Whether to include archived entities. One of: true, false
|
|
259
259
|
*/
|
|
260
|
-
|
|
260
|
+
includeArchived?: 'true' | 'false';
|
|
261
261
|
/**
|
|
262
262
|
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
263
263
|
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
@@ -330,6 +330,12 @@ export declare namespace EntityUpsertParams {
|
|
|
330
330
|
* The unique identifier for the entity
|
|
331
331
|
*/
|
|
332
332
|
id: string;
|
|
333
|
+
/**
|
|
334
|
+
* The entity type ID this entity instantiates. Required when creating a new
|
|
335
|
+
* entity; on a re-upsert may be omitted to preserve the existing type. Governance
|
|
336
|
+
* returns 400 if missing on create.
|
|
337
|
+
*/
|
|
338
|
+
entityTypeId?: string;
|
|
333
339
|
/**
|
|
334
340
|
* Free-form key/value metadata. Patch semantics: empty-string value removes a key,
|
|
335
341
|
* omitted keys are preserved.
|
|
@@ -337,12 +343,6 @@ export declare namespace EntityUpsertParams {
|
|
|
337
343
|
metadata?: {
|
|
338
344
|
[key: string]: string;
|
|
339
345
|
};
|
|
340
|
-
/**
|
|
341
|
-
* The entity type refId this entity instantiates. Required when creating a new
|
|
342
|
-
* entity; on a re-upsert may be omitted to preserve the existing type. Governance
|
|
343
|
-
* returns 400 if missing on create.
|
|
344
|
-
*/
|
|
345
|
-
typeRefId?: string;
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
export declare namespace Entities {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../src/resources/v1-beta/customers/entities.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE,oCAAiC;AAElG,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;OAUG;IACH,QAAQ,CACN,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,oBAAoB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;IAcrC;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,iCAAiC,EAAE,kBAAkB,CAAC;IAmBrE;;;;;;;;;;OAUG;IACH,OAAO,CACL,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,mBAAmB,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qBAAqB,CAAC;IAepC;;;;;;;;;;OAUG;IACH,SAAS,CACP,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,qBAAqB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC;IAetC;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;CAc3G;AAED,MAAM,MAAM,iCAAiC,GAAG,cAAc,CAAC,kBAAkB,CAAC,CAAC;AAEnF;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,IAAI,EAAE,sBAAsB,CAAC,IAAI,CAAC;CACnC;AAED,yBAAiB,sBAAsB,CAAC;IACtC;;OAEG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;QAE1B;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,QAAQ,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;SAAE,CAAC;QAEpC;;WAEG;QACH,
|
|
1
|
+
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../src/resources/v1-beta/customers/entities.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE,oCAAiC;AAElG,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;OAUG;IACH,QAAQ,CACN,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,oBAAoB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;IAcrC;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,iCAAiC,EAAE,kBAAkB,CAAC;IAmBrE;;;;;;;;;;OAUG;IACH,OAAO,CACL,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,mBAAmB,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qBAAqB,CAAC;IAepC;;;;;;;;;;OAUG;IACH,SAAS,CACP,EAAE,EAAE,MAAM,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3E,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -119,12 +119,12 @@ class Entities extends resource_1.APIResource {
|
|
|
119
119
|
* entities: [
|
|
120
120
|
* {
|
|
121
121
|
* id: 'user-7f3a0c1d',
|
|
122
|
-
*
|
|
122
|
+
* entityTypeId: 'user',
|
|
123
123
|
* metadata: { email: 'jane@acme.com', role: 'admin' },
|
|
124
124
|
* },
|
|
125
125
|
* {
|
|
126
126
|
* id: 'user-c4d1b2e9',
|
|
127
|
-
*
|
|
127
|
+
* entityTypeId: 'user',
|
|
128
128
|
* metadata: { email: 'john@acme.com' },
|
|
129
129
|
* },
|
|
130
130
|
* ],
|
|
@@ -116,12 +116,12 @@ export class Entities extends APIResource {
|
|
|
116
116
|
* entities: [
|
|
117
117
|
* {
|
|
118
118
|
* id: 'user-7f3a0c1d',
|
|
119
|
-
*
|
|
119
|
+
* entityTypeId: 'user',
|
|
120
120
|
* metadata: { email: 'jane@acme.com', role: 'admin' },
|
|
121
121
|
* },
|
|
122
122
|
* {
|
|
123
123
|
* id: 'user-c4d1b2e9',
|
|
124
|
-
*
|
|
124
|
+
* entityTypeId: 'user',
|
|
125
125
|
* metadata: { email: 'john@acme.com' },
|
|
126
126
|
* },
|
|
127
127
|
* ],
|
package/src/client.ts
CHANGED
|
@@ -131,7 +131,7 @@ export class Stigg {
|
|
|
131
131
|
* API Client for interfacing with the Stigg API.
|
|
132
132
|
*
|
|
133
133
|
* @param {string | undefined} [opts.apiKey=process.env['STIGG_API_KEY'] ?? undefined]
|
|
134
|
-
* @param {string} [opts.baseURL=process.env['STIGG_BASE_URL'] ?? https://api.stigg.io] - Override the default base URL for the API.
|
|
134
|
+
* @param {string} [opts.baseURL=process.env['STIGG_BASE_URL'] ?? https://edge.api.stigg.io] - Override the default base URL for the API.
|
|
135
135
|
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
136
136
|
* @param {MergedRequestInit} [opts.fetchOptions] - Additional `RequestInit` options to be passed to `fetch` calls.
|
|
137
137
|
* @param {Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
|
@@ -153,7 +153,7 @@ export class Stigg {
|
|
|
153
153
|
const options: ClientOptions = {
|
|
154
154
|
apiKey,
|
|
155
155
|
...opts,
|
|
156
|
-
baseURL: baseURL || `https://api.stigg.io`,
|
|
156
|
+
baseURL: baseURL || `https://edge.api.stigg.io`,
|
|
157
157
|
};
|
|
158
158
|
|
|
159
159
|
this.baseURL = options.baseURL!;
|
|
@@ -211,7 +211,7 @@ export class Stigg {
|
|
|
211
211
|
* Check whether the base URL is set to its default.
|
|
212
212
|
*/
|
|
213
213
|
#baseURLOverridden(): boolean {
|
|
214
|
-
return this.baseURL !== 'https://api.stigg.io';
|
|
214
|
+
return this.baseURL !== 'https://edge.api.stigg.io';
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
protected defaultQuery(): Record<string, string | undefined> | undefined {
|