@zapier/zapier-sdk 0.112.0 → 0.112.1
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 +6 -0
- package/README.md +4 -0
- package/dist/{chunk-PQB6IXXA.mjs → chunk-33SIO3PJ.mjs} +9 -2
- package/dist/{chunk-22F3PGAC.cjs → chunk-EXJ2SDRS.cjs} +17 -10
- package/dist/experimental.cjs +378 -378
- package/dist/experimental.d.mts +50 -2
- package/dist/experimental.d.ts +50 -2
- package/dist/experimental.mjs +2 -2
- package/dist/{index-BxH1lsFT.d.mts → index-BH54g1hq.d.mts} +107 -1
- package/dist/{index-BxH1lsFT.d.ts → index-BH54g1hq.d.ts} +107 -1
- package/dist/index.cjs +272 -272
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @zapier/zapier-sdk
|
|
2
2
|
|
|
3
|
+
## 0.112.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 218c461: Added an `is_managed` field to the connections returned by `listConnections`. It indicates whether a connection is managed by account admins (no individual owner) rather than owned by an individual user.
|
|
8
|
+
|
|
3
9
|
## 0.112.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -2710,6 +2710,7 @@ Find the first connection matching the criteria
|
|
|
2710
2710
|
| ↳ `expired_at` | `string` | ❌ | — | Date when connection expired (mapped from marked_stale_at) |
|
|
2711
2711
|
| ↳ `app_key` | `string` | ❌ | — | App Key extracted from implementation_id |
|
|
2712
2712
|
| ↳ `app_version` | `string` | ❌ | — | App Version extracted from implementation_id |
|
|
2713
|
+
| ↳ `is_managed` | `boolean` | ❌ | — | Whether this connection is managed by account admins (no individual owner) |
|
|
2713
2714
|
|
|
2714
2715
|
**Example:**
|
|
2715
2716
|
|
|
@@ -2767,6 +2768,7 @@ Find a unique connection matching the criteria
|
|
|
2767
2768
|
| ↳ `expired_at` | `string` | ❌ | — | Date when connection expired (mapped from marked_stale_at) |
|
|
2768
2769
|
| ↳ `app_key` | `string` | ❌ | — | App Key extracted from implementation_id |
|
|
2769
2770
|
| ↳ `app_version` | `string` | ❌ | — | App Version extracted from implementation_id |
|
|
2771
|
+
| ↳ `is_managed` | `boolean` | ❌ | — | Whether this connection is managed by account admins (no individual owner) |
|
|
2770
2772
|
|
|
2771
2773
|
**Example:**
|
|
2772
2774
|
|
|
@@ -2818,6 +2820,7 @@ Get details for a specific connection
|
|
|
2818
2820
|
| ↳ `expired_at` | `string` | ❌ | — | Date when connection expired (mapped from marked_stale_at) |
|
|
2819
2821
|
| ↳ `app_key` | `string` | ❌ | — | App Key extracted from implementation_id |
|
|
2820
2822
|
| ↳ `app_version` | `string` | ❌ | — | App Version extracted from implementation_id |
|
|
2823
|
+
| ↳ `is_managed` | `boolean` | ❌ | — | Whether this connection is managed by account admins (no individual owner) |
|
|
2821
2824
|
|
|
2822
2825
|
**Example:**
|
|
2823
2826
|
|
|
@@ -2922,6 +2925,7 @@ List available connections with optional filtering
|
|
|
2922
2925
|
| ↳ `expired_at` | `string` | ❌ | — | Date when connection expired (mapped from marked_stale_at) |
|
|
2923
2926
|
| ↳ `app_key` | `string` | ❌ | — | App Key extracted from implementation_id |
|
|
2924
2927
|
| ↳ `app_version` | `string` | ❌ | — | App Version extracted from implementation_id |
|
|
2928
|
+
| ↳ `is_managed` | `boolean` | ❌ | — | Whether this connection is managed by account admins (no individual owner) |
|
|
2925
2929
|
| `nextCursor` | `string` | ❌ | — | Cursor for the next page; omitted when there are no more pages |
|
|
2926
2930
|
|
|
2927
2931
|
**Example:**
|
|
@@ -2,7 +2,7 @@ import { __require } from './chunk-Y6FXYEAI.mjs';
|
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { withPositional, createDeprecationLogger, createAsyncContext, declareOptionalProperty, defineProperty, definePlugin, sendHttpRequestPlugin, retryHttpRequestPlugin, declareProperty, defineMethod, coreOptionsPluginRef, createValidator, defineFormatter, declareMethod, defineResolver, concatLists, openEnum, defineHook, getRegistryPlugin, paginate, toSnakeCase, isCoreError, toTitleCase, CORE_ERROR_SYMBOL, CoreErrorCode, CORE_SIGNAL_SYMBOL, isCoreSignal, createSdk, CORE_OPTIONS_ID, resolvePlugin } from '@zapier/kitcore';
|
|
4
4
|
export { CONTEXT, CORE_ERROR_SYMBOL, CORE_OPTIONS_ID, CORE_SIGNAL_SYMBOL, CoreCancelledSignal, CoreDisposeError, CoreErrorCode, CoreSignal, addPlugin, createController, createSdk, declareMethod, declareOptionalProperty, declarePlugin, declareProperty, defineFormatter, defineMethod, defineMethodOverride, defineOverride, definePlugin, defineProperty, defineResolver, disposeSdk, getContext, getCoreErrorCause, getCoreErrorCode, getNegatable, getRegistry, getRegistryPlugin, isCoreCancelledSignal, isCoreError, isCoreSignal, isPositional, omitExports, resolvePlugin, runInMethodScope, runWithTelemetryContext, selectExports, toSnakeCase, toTitleCase } from '@zapier/kitcore';
|
|
5
|
-
import { ConnectionSchema, ConnectionsResponseSchema, ListConnectionsQuerySchema as ListConnectionsQuerySchema$1
|
|
5
|
+
import { ConnectionItemSchema as ConnectionItemSchema$1, ConnectionSchema, ConnectionsResponseSchema, ListConnectionsQuerySchema as ListConnectionsQuerySchema$1 } from '@zapier/zapier-sdk-core/v0/schemas/connections';
|
|
6
6
|
import { buildHttpRequestContext, buildActionRunContext } from '@zapier/policy-context';
|
|
7
7
|
import { ListAppsQuerySchema, AppItemSchema as AppItemSchema$1 } from '@zapier/zapier-sdk-core/v0/schemas/apps';
|
|
8
8
|
import { ImplementationMetaSchema, ImplementationsMetaResponseSchema } from '@zapier/zapier-sdk-core/v0/schemas/implementations';
|
|
@@ -2806,7 +2806,7 @@ function logRouteOverride({
|
|
|
2806
2806
|
}
|
|
2807
2807
|
|
|
2808
2808
|
// src/sdk-version.ts
|
|
2809
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.112.
|
|
2809
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.112.1" : void 0) || "unknown";
|
|
2810
2810
|
|
|
2811
2811
|
// src/utils/open-url.ts
|
|
2812
2812
|
var nodePrefix = "node:";
|
|
@@ -4411,6 +4411,7 @@ function transformConnectionItem(item) {
|
|
|
4411
4411
|
lastchanged: item.lastchanged,
|
|
4412
4412
|
is_stale: item.is_stale,
|
|
4413
4413
|
is_shared: item.is_shared,
|
|
4414
|
+
is_managed: item.is_managed,
|
|
4414
4415
|
identifier: item.identifier,
|
|
4415
4416
|
groups: item.groups,
|
|
4416
4417
|
members: item.members,
|
|
@@ -4549,9 +4550,15 @@ function normalizeAppItem({
|
|
|
4549
4550
|
}
|
|
4550
4551
|
});
|
|
4551
4552
|
}
|
|
4553
|
+
var ConnectionItemSchema = ConnectionItemSchema$1.extend({
|
|
4554
|
+
is_managed: z.boolean().optional().describe(
|
|
4555
|
+
"Whether this connection is managed by account admins (no individual owner)"
|
|
4556
|
+
)
|
|
4557
|
+
});
|
|
4552
4558
|
var RawConnectionSchema = ConnectionSchema.extend({
|
|
4553
4559
|
is_stale: z.boolean().optional(),
|
|
4554
4560
|
is_shared: z.boolean().optional(),
|
|
4561
|
+
is_managed: z.boolean().optional(),
|
|
4555
4562
|
members: z.array(z.record(z.string(), z.any())).optional(),
|
|
4556
4563
|
customuser_id: z.number().nullable().optional(),
|
|
4557
4564
|
customuser_public_id: z.string().nullable().optional()
|
|
@@ -2807,7 +2807,7 @@ function logRouteOverride({
|
|
|
2807
2807
|
}
|
|
2808
2808
|
|
|
2809
2809
|
// src/sdk-version.ts
|
|
2810
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.112.
|
|
2810
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.112.1" : void 0) || "unknown";
|
|
2811
2811
|
|
|
2812
2812
|
// src/utils/open-url.ts
|
|
2813
2813
|
var nodePrefix = "node:";
|
|
@@ -4412,6 +4412,7 @@ function transformConnectionItem(item) {
|
|
|
4412
4412
|
lastchanged: item.lastchanged,
|
|
4413
4413
|
is_stale: item.is_stale,
|
|
4414
4414
|
is_shared: item.is_shared,
|
|
4415
|
+
is_managed: item.is_managed,
|
|
4415
4416
|
identifier: item.identifier,
|
|
4416
4417
|
groups: item.groups,
|
|
4417
4418
|
members: item.members,
|
|
@@ -4550,9 +4551,15 @@ function normalizeAppItem({
|
|
|
4550
4551
|
}
|
|
4551
4552
|
});
|
|
4552
4553
|
}
|
|
4554
|
+
var ConnectionItemSchema = connections.ConnectionItemSchema.extend({
|
|
4555
|
+
is_managed: zod.z.boolean().optional().describe(
|
|
4556
|
+
"Whether this connection is managed by account admins (no individual owner)"
|
|
4557
|
+
)
|
|
4558
|
+
});
|
|
4553
4559
|
var RawConnectionSchema = connections.ConnectionSchema.extend({
|
|
4554
4560
|
is_stale: zod.z.boolean().optional(),
|
|
4555
4561
|
is_shared: zod.z.boolean().optional(),
|
|
4562
|
+
is_managed: zod.z.boolean().optional(),
|
|
4556
4563
|
members: zod.z.array(zod.z.record(zod.z.string(), zod.z.any())).optional(),
|
|
4557
4564
|
customuser_id: zod.z.number().nullable().optional(),
|
|
4558
4565
|
customuser_public_id: zod.z.string().nullable().optional()
|
|
@@ -4604,7 +4611,7 @@ function normalizeConnectionItem({
|
|
|
4604
4611
|
app_version: appVersion,
|
|
4605
4612
|
profile_id: profileId != null ? String(profileId) : void 0
|
|
4606
4613
|
};
|
|
4607
|
-
return kitcore.createValidator(
|
|
4614
|
+
return kitcore.createValidator(ConnectionItemSchema, { adaptError })(normalized);
|
|
4608
4615
|
}
|
|
4609
4616
|
|
|
4610
4617
|
// src/utils/pagination.ts
|
|
@@ -8574,7 +8581,7 @@ var listConnectionsPlugin = kitcore.defineMethod({
|
|
|
8574
8581
|
categories: ["connection"],
|
|
8575
8582
|
itemType: "Connection",
|
|
8576
8583
|
inputSchema: ListConnectionsQuerySchema,
|
|
8577
|
-
outputSchema:
|
|
8584
|
+
outputSchema: ConnectionItemSchema,
|
|
8578
8585
|
skipOutputValidation: true,
|
|
8579
8586
|
formatter: connectionItemFormatter,
|
|
8580
8587
|
// `app` is an optional, search-backed filter: the controller offers the app
|
|
@@ -8876,7 +8883,7 @@ var getConnectionPlugin = kitcore.defineMethod({
|
|
|
8876
8883
|
categories: ["connection"],
|
|
8877
8884
|
itemType: "Connection",
|
|
8878
8885
|
inputSchema: GetConnectionInputSchema,
|
|
8879
|
-
outputSchema:
|
|
8886
|
+
outputSchema: ConnectionItemSchema,
|
|
8880
8887
|
skipOutputValidation: true,
|
|
8881
8888
|
output: "item",
|
|
8882
8889
|
formatter: connectionItemFormatter,
|
|
@@ -8921,7 +8928,7 @@ var findFirstConnectionPlugin = kitcore.defineMethod({
|
|
|
8921
8928
|
categories: ["connection"],
|
|
8922
8929
|
itemType: "Connection",
|
|
8923
8930
|
inputSchema: FindFirstConnectionSchema,
|
|
8924
|
-
outputSchema:
|
|
8931
|
+
outputSchema: ConnectionItemSchema,
|
|
8925
8932
|
skipOutputValidation: true,
|
|
8926
8933
|
output: "item",
|
|
8927
8934
|
formatter: connectionItemFormatter,
|
|
@@ -8957,7 +8964,7 @@ var findUniqueConnectionPlugin = kitcore.defineMethod({
|
|
|
8957
8964
|
categories: ["connection"],
|
|
8958
8965
|
itemType: "Connection",
|
|
8959
8966
|
inputSchema: FindUniqueConnectionSchema,
|
|
8960
|
-
outputSchema:
|
|
8967
|
+
outputSchema: ConnectionItemSchema,
|
|
8961
8968
|
skipOutputValidation: true,
|
|
8962
8969
|
output: "item",
|
|
8963
8970
|
formatter: connectionItemFormatter,
|
|
@@ -9459,7 +9466,7 @@ var listAuthenticationsPlugin = kitcore.defineMethod({
|
|
|
9459
9466
|
categories: ["connection"],
|
|
9460
9467
|
deprecation: { message: "Use listConnections instead." },
|
|
9461
9468
|
itemType: "Connection",
|
|
9462
|
-
outputSchema:
|
|
9469
|
+
outputSchema: ConnectionItemSchema,
|
|
9463
9470
|
// Matches `listConnections`: an alias must not enforce a schema its target
|
|
9464
9471
|
// passes through, or the deprecated name strips (or rejects) responses the
|
|
9465
9472
|
// supported name returns intact.
|
|
@@ -9480,7 +9487,7 @@ var getAuthenticationPlugin = kitcore.defineMethod({
|
|
|
9480
9487
|
deprecation: { message: "Use getConnection instead." },
|
|
9481
9488
|
type: "item",
|
|
9482
9489
|
itemType: "Connection",
|
|
9483
|
-
outputSchema:
|
|
9490
|
+
outputSchema: ConnectionItemSchema,
|
|
9484
9491
|
// Inert while the output is `raw` (that mode never validates), set so every
|
|
9485
9492
|
// method declaring an `outputSchema` states its stance, and so switching this
|
|
9486
9493
|
// alias to `item` keeps mirroring `getConnection`'s opt-out.
|
|
@@ -9501,7 +9508,7 @@ var findFirstAuthenticationPlugin = kitcore.defineMethod({
|
|
|
9501
9508
|
deprecation: { message: "Use findFirstConnection instead." },
|
|
9502
9509
|
type: "item",
|
|
9503
9510
|
itemType: "Connection",
|
|
9504
|
-
outputSchema:
|
|
9511
|
+
outputSchema: ConnectionItemSchema,
|
|
9505
9512
|
skipOutputValidation: true,
|
|
9506
9513
|
formatter: connectionItemFormatter,
|
|
9507
9514
|
run: ({ imports, input }) => {
|
|
@@ -9519,7 +9526,7 @@ var findUniqueAuthenticationPlugin = kitcore.defineMethod({
|
|
|
9519
9526
|
deprecation: { message: "Use findUniqueConnection instead." },
|
|
9520
9527
|
type: "item",
|
|
9521
9528
|
itemType: "Connection",
|
|
9522
|
-
outputSchema:
|
|
9529
|
+
outputSchema: ConnectionItemSchema,
|
|
9523
9530
|
skipOutputValidation: true,
|
|
9524
9531
|
formatter: connectionItemFormatter,
|
|
9525
9532
|
run: ({ imports, input }) => {
|