@outlit/tools 2.2.3 → 2.2.4
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/dist/index.cjs +226 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +144 -2
- package/dist/index.d.ts +144 -2
- package/dist/index.js +224 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -24,9 +24,11 @@ __export(src_exports, {
|
|
|
24
24
|
OutlitToolsApiError: () => OutlitToolsApiError,
|
|
25
25
|
allPublicToolNames: () => allPublicToolNames,
|
|
26
26
|
analyticalToolNames: () => analyticalToolNames,
|
|
27
|
+
apiKeyContractHeader: () => apiKeyContractHeader,
|
|
27
28
|
apiKeyGrants: () => apiKeyGrants,
|
|
28
29
|
apiKeyValidationFailureSchema: () => apiKeyValidationFailureSchema,
|
|
29
30
|
apiKeyValidationSuccessSchema: () => apiKeyValidationSuccessSchema,
|
|
31
|
+
apiKeyValidationSuccessSchemaV2: () => apiKeyValidationSuccessSchemaV2,
|
|
30
32
|
apiKeyValidationTransport: () => apiKeyValidationTransport,
|
|
31
33
|
cliToolNames: () => cliToolNames,
|
|
32
34
|
consumerToolPolicies: () => consumerToolPolicies,
|
|
@@ -16128,6 +16130,227 @@ var apiKeyValidationFailureSchema = {
|
|
|
16128
16130
|
],
|
|
16129
16131
|
"additionalProperties": false
|
|
16130
16132
|
};
|
|
16133
|
+
var apiKeyContractHeader = "Outlit-Api-Key-Contract";
|
|
16134
|
+
var apiKeyValidationSuccessSchemaV2 = {
|
|
16135
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
16136
|
+
"type": "object",
|
|
16137
|
+
"properties": {
|
|
16138
|
+
"valid": {
|
|
16139
|
+
"type": "boolean",
|
|
16140
|
+
"const": true
|
|
16141
|
+
},
|
|
16142
|
+
"organizationId": {
|
|
16143
|
+
"type": "string"
|
|
16144
|
+
},
|
|
16145
|
+
"createdById": {
|
|
16146
|
+
"anyOf": [
|
|
16147
|
+
{
|
|
16148
|
+
"type": "string"
|
|
16149
|
+
},
|
|
16150
|
+
{
|
|
16151
|
+
"type": "null"
|
|
16152
|
+
}
|
|
16153
|
+
]
|
|
16154
|
+
},
|
|
16155
|
+
"organization": {
|
|
16156
|
+
"type": "object",
|
|
16157
|
+
"properties": {
|
|
16158
|
+
"id": {
|
|
16159
|
+
"type": "string"
|
|
16160
|
+
},
|
|
16161
|
+
"name": {
|
|
16162
|
+
"anyOf": [
|
|
16163
|
+
{
|
|
16164
|
+
"type": "string"
|
|
16165
|
+
},
|
|
16166
|
+
{
|
|
16167
|
+
"type": "null"
|
|
16168
|
+
}
|
|
16169
|
+
]
|
|
16170
|
+
},
|
|
16171
|
+
"slug": {
|
|
16172
|
+
"anyOf": [
|
|
16173
|
+
{
|
|
16174
|
+
"type": "string"
|
|
16175
|
+
},
|
|
16176
|
+
{
|
|
16177
|
+
"type": "null"
|
|
16178
|
+
}
|
|
16179
|
+
]
|
|
16180
|
+
}
|
|
16181
|
+
},
|
|
16182
|
+
"required": [
|
|
16183
|
+
"id",
|
|
16184
|
+
"name",
|
|
16185
|
+
"slug"
|
|
16186
|
+
],
|
|
16187
|
+
"additionalProperties": false
|
|
16188
|
+
},
|
|
16189
|
+
"createdBy": {
|
|
16190
|
+
"anyOf": [
|
|
16191
|
+
{
|
|
16192
|
+
"type": "object",
|
|
16193
|
+
"properties": {
|
|
16194
|
+
"id": {
|
|
16195
|
+
"type": "string"
|
|
16196
|
+
},
|
|
16197
|
+
"email": {
|
|
16198
|
+
"type": "string"
|
|
16199
|
+
},
|
|
16200
|
+
"name": {
|
|
16201
|
+
"anyOf": [
|
|
16202
|
+
{
|
|
16203
|
+
"type": "string"
|
|
16204
|
+
},
|
|
16205
|
+
{
|
|
16206
|
+
"type": "null"
|
|
16207
|
+
}
|
|
16208
|
+
]
|
|
16209
|
+
}
|
|
16210
|
+
},
|
|
16211
|
+
"required": [
|
|
16212
|
+
"id",
|
|
16213
|
+
"email",
|
|
16214
|
+
"name"
|
|
16215
|
+
],
|
|
16216
|
+
"additionalProperties": false
|
|
16217
|
+
},
|
|
16218
|
+
{
|
|
16219
|
+
"type": "null"
|
|
16220
|
+
}
|
|
16221
|
+
]
|
|
16222
|
+
},
|
|
16223
|
+
"apiKey": {
|
|
16224
|
+
"type": "object",
|
|
16225
|
+
"properties": {
|
|
16226
|
+
"id": {
|
|
16227
|
+
"type": "string"
|
|
16228
|
+
},
|
|
16229
|
+
"name": {
|
|
16230
|
+
"type": "string"
|
|
16231
|
+
},
|
|
16232
|
+
"prefix": {
|
|
16233
|
+
"type": "string"
|
|
16234
|
+
},
|
|
16235
|
+
"keyType": {
|
|
16236
|
+
"type": "string",
|
|
16237
|
+
"enum": [
|
|
16238
|
+
"api",
|
|
16239
|
+
"cli",
|
|
16240
|
+
"mcp",
|
|
16241
|
+
"ci"
|
|
16242
|
+
]
|
|
16243
|
+
},
|
|
16244
|
+
"grants": {
|
|
16245
|
+
"type": "array",
|
|
16246
|
+
"items": {
|
|
16247
|
+
"type": "string",
|
|
16248
|
+
"enum": [
|
|
16249
|
+
"customer_intelligence:read",
|
|
16250
|
+
"workspace_members:read",
|
|
16251
|
+
"analytics:read",
|
|
16252
|
+
"destinations:manage",
|
|
16253
|
+
"behavior_metrics:manage",
|
|
16254
|
+
"integrations:connect_own",
|
|
16255
|
+
"integrations:manage",
|
|
16256
|
+
"activation:read",
|
|
16257
|
+
"activation:manage",
|
|
16258
|
+
"workspace_settings:read",
|
|
16259
|
+
"workspace_settings:manage",
|
|
16260
|
+
"customer_access:manage",
|
|
16261
|
+
"customer_identity:review",
|
|
16262
|
+
"customer_identity:merge"
|
|
16263
|
+
]
|
|
16264
|
+
}
|
|
16265
|
+
},
|
|
16266
|
+
"createdAt": {
|
|
16267
|
+
"type": "string",
|
|
16268
|
+
"format": "date-time",
|
|
16269
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
|
16270
|
+
},
|
|
16271
|
+
"lastUsedAt": {
|
|
16272
|
+
"anyOf": [
|
|
16273
|
+
{
|
|
16274
|
+
"type": "string",
|
|
16275
|
+
"format": "date-time",
|
|
16276
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
|
16277
|
+
},
|
|
16278
|
+
{
|
|
16279
|
+
"type": "null"
|
|
16280
|
+
}
|
|
16281
|
+
]
|
|
16282
|
+
},
|
|
16283
|
+
"totalRequests": {
|
|
16284
|
+
"type": "integer",
|
|
16285
|
+
"minimum": 0,
|
|
16286
|
+
"maximum": 9007199254740991
|
|
16287
|
+
},
|
|
16288
|
+
"expiresAt": {
|
|
16289
|
+
"anyOf": [
|
|
16290
|
+
{
|
|
16291
|
+
"type": "string",
|
|
16292
|
+
"format": "date-time",
|
|
16293
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
|
16294
|
+
},
|
|
16295
|
+
{
|
|
16296
|
+
"type": "null"
|
|
16297
|
+
}
|
|
16298
|
+
]
|
|
16299
|
+
}
|
|
16300
|
+
},
|
|
16301
|
+
"required": [
|
|
16302
|
+
"id",
|
|
16303
|
+
"name",
|
|
16304
|
+
"prefix",
|
|
16305
|
+
"keyType",
|
|
16306
|
+
"grants",
|
|
16307
|
+
"createdAt",
|
|
16308
|
+
"lastUsedAt",
|
|
16309
|
+
"totalRequests",
|
|
16310
|
+
"expiresAt"
|
|
16311
|
+
],
|
|
16312
|
+
"additionalProperties": false
|
|
16313
|
+
},
|
|
16314
|
+
"authorization": {
|
|
16315
|
+
"type": "object",
|
|
16316
|
+
"properties": {
|
|
16317
|
+
"grants": {
|
|
16318
|
+
"type": "array",
|
|
16319
|
+
"items": {
|
|
16320
|
+
"type": "string",
|
|
16321
|
+
"enum": [
|
|
16322
|
+
"customer_intelligence:read",
|
|
16323
|
+
"workspace_members:read",
|
|
16324
|
+
"analytics:read",
|
|
16325
|
+
"destinations:manage",
|
|
16326
|
+
"behavior_metrics:manage",
|
|
16327
|
+
"integrations:connect_own",
|
|
16328
|
+
"integrations:manage",
|
|
16329
|
+
"activation:read",
|
|
16330
|
+
"activation:manage",
|
|
16331
|
+
"workspace_settings:read",
|
|
16332
|
+
"workspace_settings:manage",
|
|
16333
|
+
"customer_access:manage",
|
|
16334
|
+
"customer_identity:review",
|
|
16335
|
+
"customer_identity:merge"
|
|
16336
|
+
]
|
|
16337
|
+
}
|
|
16338
|
+
}
|
|
16339
|
+
},
|
|
16340
|
+
"required": [
|
|
16341
|
+
"grants"
|
|
16342
|
+
],
|
|
16343
|
+
"additionalProperties": false
|
|
16344
|
+
}
|
|
16345
|
+
},
|
|
16346
|
+
"required": [
|
|
16347
|
+
"valid",
|
|
16348
|
+
"organizationId",
|
|
16349
|
+
"createdById",
|
|
16350
|
+
"authorization"
|
|
16351
|
+
],
|
|
16352
|
+
"additionalProperties": false
|
|
16353
|
+
};
|
|
16131
16354
|
var toolGatewayErrorCodes = [
|
|
16132
16355
|
"INVALID_JSON",
|
|
16133
16356
|
"INVALID_TOOL_CALL",
|
|
@@ -17175,7 +17398,7 @@ var schemaTables = [
|
|
|
17175
17398
|
"users",
|
|
17176
17399
|
"revenue"
|
|
17177
17400
|
];
|
|
17178
|
-
var sdkConsumerContractHash = "
|
|
17401
|
+
var sdkConsumerContractHash = "0bb35218a281339fd1668fe7e7b22eadde7abddc9dfd957d3d72aa8db0a1365a";
|
|
17179
17402
|
|
|
17180
17403
|
// src/contracts.ts
|
|
17181
17404
|
var publicToolNameSet = new Set(publicToolNames);
|
|
@@ -17382,9 +17605,11 @@ var sqlToolNames = analyticalToolNames.filter(
|
|
|
17382
17605
|
OutlitToolsApiError,
|
|
17383
17606
|
allPublicToolNames,
|
|
17384
17607
|
analyticalToolNames,
|
|
17608
|
+
apiKeyContractHeader,
|
|
17385
17609
|
apiKeyGrants,
|
|
17386
17610
|
apiKeyValidationFailureSchema,
|
|
17387
17611
|
apiKeyValidationSuccessSchema,
|
|
17612
|
+
apiKeyValidationSuccessSchemaV2,
|
|
17388
17613
|
apiKeyValidationTransport,
|
|
17389
17614
|
cliToolNames,
|
|
17390
17615
|
consumerToolPolicies,
|