@zapier/zapier-sdk 0.18.3 → 0.19.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 +41 -0
- package/README.md +44 -32
- package/dist/index.cjs +658 -693
- package/dist/index.d.mts +272 -138
- package/dist/index.d.ts +2541 -40
- package/dist/index.mjs +638 -692
- package/package.json +14 -13
- package/dist/api/auth.d.ts +0 -19
- package/dist/api/auth.d.ts.map +0 -1
- package/dist/api/auth.js +0 -70
- package/dist/api/auth.test.d.ts +0 -2
- package/dist/api/auth.test.d.ts.map +0 -1
- package/dist/api/auth.test.js +0 -220
- package/dist/api/client.d.ts +0 -9
- package/dist/api/client.d.ts.map +0 -1
- package/dist/api/client.integration.test.d.ts +0 -5
- package/dist/api/client.integration.test.d.ts.map +0 -1
- package/dist/api/client.integration.test.js +0 -318
- package/dist/api/client.js +0 -374
- package/dist/api/client.methods.test.d.ts +0 -2
- package/dist/api/client.methods.test.d.ts.map +0 -1
- package/dist/api/client.methods.test.js +0 -158
- package/dist/api/client.test.d.ts +0 -2
- package/dist/api/client.test.d.ts.map +0 -1
- package/dist/api/client.test.js +0 -96
- package/dist/api/debug.d.ts +0 -14
- package/dist/api/debug.d.ts.map +0 -1
- package/dist/api/debug.js +0 -131
- package/dist/api/debug.test.d.ts +0 -2
- package/dist/api/debug.test.d.ts.map +0 -1
- package/dist/api/debug.test.js +0 -59
- package/dist/api/index.d.ts +0 -30
- package/dist/api/index.d.ts.map +0 -1
- package/dist/api/index.js +0 -43
- package/dist/api/polling.d.ts +0 -46
- package/dist/api/polling.d.ts.map +0 -1
- package/dist/api/polling.js +0 -139
- package/dist/api/polling.test.d.ts +0 -2
- package/dist/api/polling.test.d.ts.map +0 -1
- package/dist/api/polling.test.js +0 -318
- package/dist/api/router.d.ts +0 -16
- package/dist/api/router.d.ts.map +0 -1
- package/dist/api/router.js +0 -31
- package/dist/api/router.test.d.ts +0 -2
- package/dist/api/router.test.d.ts.map +0 -1
- package/dist/api/router.test.js +0 -103
- package/dist/api/schemas.d.ts +0 -531
- package/dist/api/schemas.d.ts.map +0 -1
- package/dist/api/schemas.js +0 -389
- package/dist/api/types.d.ts +0 -82
- package/dist/api/types.d.ts.map +0 -1
- package/dist/api/types.js +0 -1
- package/dist/auth.d.ts +0 -52
- package/dist/auth.d.ts.map +0 -1
- package/dist/auth.js +0 -72
- package/dist/auth.test.d.ts +0 -2
- package/dist/auth.test.d.ts.map +0 -1
- package/dist/auth.test.js +0 -102
- package/dist/constants.d.ts +0 -14
- package/dist/constants.d.ts.map +0 -1
- package/dist/constants.js +0 -13
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -42
- package/dist/plugins/api/index.d.ts +0 -12
- package/dist/plugins/api/index.d.ts.map +0 -1
- package/dist/plugins/api/index.js +0 -24
- package/dist/plugins/apps/index.d.ts +0 -15
- package/dist/plugins/apps/index.d.ts.map +0 -1
- package/dist/plugins/apps/index.js +0 -112
- package/dist/plugins/apps/schemas.d.ts +0 -42
- package/dist/plugins/apps/schemas.d.ts.map +0 -1
- package/dist/plugins/apps/schemas.js +0 -14
- package/dist/plugins/eventEmission/builders.d.ts +0 -14
- package/dist/plugins/eventEmission/builders.d.ts.map +0 -1
- package/dist/plugins/eventEmission/builders.js +0 -109
- package/dist/plugins/eventEmission/index.d.ts +0 -38
- package/dist/plugins/eventEmission/index.d.ts.map +0 -1
- package/dist/plugins/eventEmission/index.js +0 -336
- package/dist/plugins/eventEmission/index.test.d.ts +0 -5
- package/dist/plugins/eventEmission/index.test.d.ts.map +0 -1
- package/dist/plugins/eventEmission/index.test.js +0 -581
- package/dist/plugins/eventEmission/transport.d.ts +0 -27
- package/dist/plugins/eventEmission/transport.d.ts.map +0 -1
- package/dist/plugins/eventEmission/transport.js +0 -104
- package/dist/plugins/eventEmission/transport.test.d.ts +0 -5
- package/dist/plugins/eventEmission/transport.test.d.ts.map +0 -1
- package/dist/plugins/eventEmission/transport.test.js +0 -164
- package/dist/plugins/eventEmission/types.d.ts +0 -63
- package/dist/plugins/eventEmission/types.d.ts.map +0 -1
- package/dist/plugins/eventEmission/types.js +0 -1
- package/dist/plugins/eventEmission/utils.d.ts +0 -45
- package/dist/plugins/eventEmission/utils.d.ts.map +0 -1
- package/dist/plugins/eventEmission/utils.js +0 -114
- package/dist/plugins/fetch/index.d.ts +0 -36
- package/dist/plugins/fetch/index.d.ts.map +0 -1
- package/dist/plugins/fetch/index.js +0 -62
- package/dist/plugins/fetch/schemas.d.ts +0 -19
- package/dist/plugins/fetch/schemas.d.ts.map +0 -1
- package/dist/plugins/fetch/schemas.js +0 -31
- package/dist/plugins/findFirstAuthentication/index.d.ts +0 -21
- package/dist/plugins/findFirstAuthentication/index.d.ts.map +0 -1
- package/dist/plugins/findFirstAuthentication/index.js +0 -36
- package/dist/plugins/findFirstAuthentication/index.test.d.ts +0 -2
- package/dist/plugins/findFirstAuthentication/index.test.d.ts.map +0 -1
- package/dist/plugins/findFirstAuthentication/index.test.js +0 -177
- package/dist/plugins/findFirstAuthentication/schemas.d.ts +0 -20
- package/dist/plugins/findFirstAuthentication/schemas.d.ts.map +0 -1
- package/dist/plugins/findFirstAuthentication/schemas.js +0 -18
- package/dist/plugins/findUniqueAuthentication/index.d.ts +0 -21
- package/dist/plugins/findUniqueAuthentication/index.d.ts.map +0 -1
- package/dist/plugins/findUniqueAuthentication/index.js +0 -39
- package/dist/plugins/findUniqueAuthentication/index.test.d.ts +0 -2
- package/dist/plugins/findUniqueAuthentication/index.test.d.ts.map +0 -1
- package/dist/plugins/findUniqueAuthentication/index.test.js +0 -159
- package/dist/plugins/findUniqueAuthentication/schemas.d.ts +0 -20
- package/dist/plugins/findUniqueAuthentication/schemas.d.ts.map +0 -1
- package/dist/plugins/findUniqueAuthentication/schemas.js +0 -18
- package/dist/plugins/getAction/index.d.ts +0 -25
- package/dist/plugins/getAction/index.d.ts.map +0 -1
- package/dist/plugins/getAction/index.js +0 -42
- package/dist/plugins/getAction/index.test.d.ts +0 -2
- package/dist/plugins/getAction/index.test.d.ts.map +0 -1
- package/dist/plugins/getAction/index.test.js +0 -211
- package/dist/plugins/getAction/schemas.d.ts +0 -30
- package/dist/plugins/getAction/schemas.d.ts.map +0 -1
- package/dist/plugins/getAction/schemas.js +0 -12
- package/dist/plugins/getApp/index.d.ts +0 -21
- package/dist/plugins/getApp/index.d.ts.map +0 -1
- package/dist/plugins/getApp/index.js +0 -44
- package/dist/plugins/getApp/index.test.d.ts +0 -2
- package/dist/plugins/getApp/index.test.d.ts.map +0 -1
- package/dist/plugins/getApp/index.test.js +0 -157
- package/dist/plugins/getApp/schemas.d.ts +0 -16
- package/dist/plugins/getApp/schemas.d.ts.map +0 -1
- package/dist/plugins/getApp/schemas.js +0 -8
- package/dist/plugins/getAuthentication/index.d.ts +0 -21
- package/dist/plugins/getAuthentication/index.d.ts.map +0 -1
- package/dist/plugins/getAuthentication/index.js +0 -29
- package/dist/plugins/getAuthentication/index.test.d.ts +0 -2
- package/dist/plugins/getAuthentication/index.test.d.ts.map +0 -1
- package/dist/plugins/getAuthentication/index.test.js +0 -106
- package/dist/plugins/getAuthentication/schemas.d.ts +0 -7
- package/dist/plugins/getAuthentication/schemas.d.ts.map +0 -1
- package/dist/plugins/getAuthentication/schemas.js +0 -1
- package/dist/plugins/getInputFieldsSchema/index.d.ts +0 -23
- package/dist/plugins/getInputFieldsSchema/index.d.ts.map +0 -1
- package/dist/plugins/getInputFieldsSchema/index.js +0 -53
- package/dist/plugins/getInputFieldsSchema/index.test.d.ts +0 -2
- package/dist/plugins/getInputFieldsSchema/index.test.d.ts.map +0 -1
- package/dist/plugins/getInputFieldsSchema/index.test.js +0 -291
- package/dist/plugins/getInputFieldsSchema/schemas.d.ts +0 -28
- package/dist/plugins/getInputFieldsSchema/schemas.d.ts.map +0 -1
- package/dist/plugins/getInputFieldsSchema/schemas.js +0 -13
- package/dist/plugins/getProfile/index.d.ts +0 -25
- package/dist/plugins/getProfile/index.d.ts.map +0 -1
- package/dist/plugins/getProfile/index.js +0 -39
- package/dist/plugins/getProfile/schemas.d.ts +0 -13
- package/dist/plugins/getProfile/schemas.d.ts.map +0 -1
- package/dist/plugins/getProfile/schemas.js +0 -6
- package/dist/plugins/listActions/index.d.ts +0 -30
- package/dist/plugins/listActions/index.d.ts.map +0 -1
- package/dist/plugins/listActions/index.js +0 -75
- package/dist/plugins/listActions/index.test.d.ts +0 -2
- package/dist/plugins/listActions/index.test.d.ts.map +0 -1
- package/dist/plugins/listActions/index.test.js +0 -453
- package/dist/plugins/listActions/schemas.d.ts +0 -35
- package/dist/plugins/listActions/schemas.d.ts.map +0 -1
- package/dist/plugins/listActions/schemas.js +0 -22
- package/dist/plugins/listApps/index.d.ts +0 -25
- package/dist/plugins/listApps/index.d.ts.map +0 -1
- package/dist/plugins/listApps/index.js +0 -69
- package/dist/plugins/listApps/index.test.d.ts +0 -2
- package/dist/plugins/listApps/index.test.d.ts.map +0 -1
- package/dist/plugins/listApps/index.test.js +0 -141
- package/dist/plugins/listApps/schemas.d.ts +0 -26
- package/dist/plugins/listApps/schemas.d.ts.map +0 -1
- package/dist/plugins/listApps/schemas.js +0 -19
- package/dist/plugins/listAuthentications/index.d.ts +0 -24
- package/dist/plugins/listAuthentications/index.d.ts.map +0 -1
- package/dist/plugins/listAuthentications/index.js +0 -77
- package/dist/plugins/listAuthentications/index.test.d.ts +0 -2
- package/dist/plugins/listAuthentications/index.test.d.ts.map +0 -1
- package/dist/plugins/listAuthentications/index.test.js +0 -832
- package/dist/plugins/listAuthentications/schemas.d.ts +0 -30
- package/dist/plugins/listAuthentications/schemas.d.ts.map +0 -1
- package/dist/plugins/listAuthentications/schemas.js +0 -32
- package/dist/plugins/listInputFieldChoices/index.d.ts +0 -33
- package/dist/plugins/listInputFieldChoices/index.d.ts.map +0 -1
- package/dist/plugins/listInputFieldChoices/index.js +0 -115
- package/dist/plugins/listInputFieldChoices/index.test.d.ts +0 -2
- package/dist/plugins/listInputFieldChoices/index.test.d.ts.map +0 -1
- package/dist/plugins/listInputFieldChoices/index.test.js +0 -717
- package/dist/plugins/listInputFieldChoices/schemas.d.ts +0 -43
- package/dist/plugins/listInputFieldChoices/schemas.d.ts.map +0 -1
- package/dist/plugins/listInputFieldChoices/schemas.js +0 -65
- package/dist/plugins/listInputFields/index.d.ts +0 -34
- package/dist/plugins/listInputFields/index.d.ts.map +0 -1
- package/dist/plugins/listInputFields/index.js +0 -204
- package/dist/plugins/listInputFields/index.test.d.ts +0 -2
- package/dist/plugins/listInputFields/index.test.d.ts.map +0 -1
- package/dist/plugins/listInputFields/index.test.js +0 -359
- package/dist/plugins/listInputFields/schemas.d.ts +0 -35
- package/dist/plugins/listInputFields/schemas.d.ts.map +0 -1
- package/dist/plugins/listInputFields/schemas.js +0 -23
- package/dist/plugins/manifest/index.d.ts +0 -85
- package/dist/plugins/manifest/index.d.ts.map +0 -1
- package/dist/plugins/manifest/index.js +0 -376
- package/dist/plugins/manifest/index.test.d.ts +0 -2
- package/dist/plugins/manifest/index.test.d.ts.map +0 -1
- package/dist/plugins/manifest/index.test.js +0 -1139
- package/dist/plugins/manifest/schemas.d.ts +0 -57
- package/dist/plugins/manifest/schemas.d.ts.map +0 -1
- package/dist/plugins/manifest/schemas.js +0 -50
- package/dist/plugins/registry/index.d.ts +0 -21
- package/dist/plugins/registry/index.d.ts.map +0 -1
- package/dist/plugins/registry/index.js +0 -117
- package/dist/plugins/request/index.d.ts +0 -21
- package/dist/plugins/request/index.d.ts.map +0 -1
- package/dist/plugins/request/index.js +0 -76
- package/dist/plugins/request/index.test.d.ts +0 -2
- package/dist/plugins/request/index.test.d.ts.map +0 -1
- package/dist/plugins/request/index.test.js +0 -337
- package/dist/plugins/request/schemas.d.ts +0 -54
- package/dist/plugins/request/schemas.d.ts.map +0 -1
- package/dist/plugins/request/schemas.js +0 -41
- package/dist/plugins/runAction/index.d.ts +0 -33
- package/dist/plugins/runAction/index.d.ts.map +0 -1
- package/dist/plugins/runAction/index.js +0 -108
- package/dist/plugins/runAction/index.test.d.ts +0 -2
- package/dist/plugins/runAction/index.test.d.ts.map +0 -1
- package/dist/plugins/runAction/index.test.js +0 -333
- package/dist/plugins/runAction/schemas.d.ts +0 -34
- package/dist/plugins/runAction/schemas.d.ts.map +0 -1
- package/dist/plugins/runAction/schemas.js +0 -23
- package/dist/resolvers/actionKey.d.ts +0 -15
- package/dist/resolvers/actionKey.d.ts.map +0 -1
- package/dist/resolvers/actionKey.js +0 -19
- package/dist/resolvers/actionType.d.ts +0 -10
- package/dist/resolvers/actionType.d.ts.map +0 -1
- package/dist/resolvers/actionType.js +0 -21
- package/dist/resolvers/appKey.d.ts +0 -3
- package/dist/resolvers/appKey.d.ts.map +0 -1
- package/dist/resolvers/appKey.js +0 -5
- package/dist/resolvers/authenticationId.d.ts +0 -9
- package/dist/resolvers/authenticationId.d.ts.map +0 -1
- package/dist/resolvers/authenticationId.js +0 -42
- package/dist/resolvers/index.d.ts +0 -8
- package/dist/resolvers/index.d.ts.map +0 -1
- package/dist/resolvers/index.js +0 -8
- package/dist/resolvers/inputFieldKey.d.ts +0 -11
- package/dist/resolvers/inputFieldKey.d.ts.map +0 -1
- package/dist/resolvers/inputFieldKey.js +0 -47
- package/dist/resolvers/inputs.d.ts +0 -17
- package/dist/resolvers/inputs.d.ts.map +0 -1
- package/dist/resolvers/inputs.js +0 -50
- package/dist/schemas/Action.d.ts +0 -24
- package/dist/schemas/Action.d.ts.map +0 -1
- package/dist/schemas/Action.js +0 -40
- package/dist/schemas/App.d.ts +0 -57
- package/dist/schemas/App.d.ts.map +0 -1
- package/dist/schemas/App.js +0 -31
- package/dist/schemas/Auth.d.ts +0 -55
- package/dist/schemas/Auth.d.ts.map +0 -1
- package/dist/schemas/Auth.js +0 -33
- package/dist/schemas/Field.d.ts +0 -61
- package/dist/schemas/Field.d.ts.map +0 -1
- package/dist/schemas/Field.js +0 -116
- package/dist/schemas/Run.d.ts +0 -3
- package/dist/schemas/Run.d.ts.map +0 -1
- package/dist/schemas/Run.js +0 -31
- package/dist/schemas/UserProfile.d.ts +0 -13
- package/dist/schemas/UserProfile.d.ts.map +0 -1
- package/dist/schemas/UserProfile.js +0 -32
- package/dist/sdk.d.ts +0 -146
- package/dist/sdk.d.ts.map +0 -1
- package/dist/sdk.js +0 -112
- package/dist/sdk.test.d.ts +0 -2
- package/dist/sdk.test.d.ts.map +0 -1
- package/dist/sdk.test.js +0 -255
- package/dist/services/implementations.d.ts +0 -63
- package/dist/services/implementations.d.ts.map +0 -1
- package/dist/services/implementations.js +0 -80
- package/dist/temporary-internal-core/handlers/listApps.d.ts +0 -67
- package/dist/temporary-internal-core/handlers/listApps.d.ts.map +0 -1
- package/dist/temporary-internal-core/handlers/listApps.js +0 -134
- package/dist/temporary-internal-core/handlers/listApps.test.d.ts +0 -2
- package/dist/temporary-internal-core/handlers/listApps.test.d.ts.map +0 -1
- package/dist/temporary-internal-core/handlers/listApps.test.js +0 -367
- package/dist/temporary-internal-core/index.d.ts +0 -18
- package/dist/temporary-internal-core/index.d.ts.map +0 -1
- package/dist/temporary-internal-core/index.js +0 -18
- package/dist/temporary-internal-core/schemas/apps/index.d.ts +0 -175
- package/dist/temporary-internal-core/schemas/apps/index.d.ts.map +0 -1
- package/dist/temporary-internal-core/schemas/apps/index.js +0 -97
- package/dist/temporary-internal-core/schemas/errors/index.d.ts +0 -139
- package/dist/temporary-internal-core/schemas/errors/index.d.ts.map +0 -1
- package/dist/temporary-internal-core/schemas/errors/index.js +0 -129
- package/dist/temporary-internal-core/schemas/implementations/index.d.ts +0 -127
- package/dist/temporary-internal-core/schemas/implementations/index.d.ts.map +0 -1
- package/dist/temporary-internal-core/schemas/implementations/index.js +0 -79
- package/dist/temporary-internal-core/types/handler.d.ts +0 -51
- package/dist/temporary-internal-core/types/handler.d.ts.map +0 -1
- package/dist/temporary-internal-core/types/handler.js +0 -8
- package/dist/temporary-internal-core/types/index.d.ts +0 -5
- package/dist/temporary-internal-core/types/index.d.ts.map +0 -1
- package/dist/temporary-internal-core/types/index.js +0 -4
- package/dist/temporary-internal-core/utils/app-locators.d.ts +0 -34
- package/dist/temporary-internal-core/utils/app-locators.d.ts.map +0 -1
- package/dist/temporary-internal-core/utils/app-locators.js +0 -39
- package/dist/temporary-internal-core/utils/string-utils.d.ts +0 -28
- package/dist/temporary-internal-core/utils/string-utils.d.ts.map +0 -1
- package/dist/temporary-internal-core/utils/string-utils.js +0 -52
- package/dist/temporary-internal-core/utils/transformations.d.ts +0 -18
- package/dist/temporary-internal-core/utils/transformations.d.ts.map +0 -1
- package/dist/temporary-internal-core/utils/transformations.js +0 -36
- package/dist/types/domain.d.ts +0 -52
- package/dist/types/domain.d.ts.map +0 -1
- package/dist/types/domain.js +0 -1
- package/dist/types/domain.test.d.ts +0 -2
- package/dist/types/domain.test.d.ts.map +0 -1
- package/dist/types/domain.test.js +0 -39
- package/dist/types/errors.d.ts +0 -143
- package/dist/types/errors.d.ts.map +0 -1
- package/dist/types/errors.js +0 -187
- package/dist/types/events.d.ts +0 -38
- package/dist/types/events.d.ts.map +0 -1
- package/dist/types/events.js +0 -7
- package/dist/types/functions.d.ts +0 -27
- package/dist/types/functions.d.ts.map +0 -1
- package/dist/types/functions.js +0 -1
- package/dist/types/plugin.d.ts +0 -75
- package/dist/types/plugin.d.ts.map +0 -1
- package/dist/types/plugin.js +0 -9
- package/dist/types/properties.d.ts +0 -33
- package/dist/types/properties.d.ts.map +0 -1
- package/dist/types/properties.js +0 -52
- package/dist/types/sdk.d.ts +0 -69
- package/dist/types/sdk.d.ts.map +0 -1
- package/dist/types/sdk.js +0 -4
- package/dist/types/telemetry-events.d.ts +0 -105
- package/dist/types/telemetry-events.d.ts.map +0 -1
- package/dist/types/telemetry-events.js +0 -8
- package/dist/utils/array-utils.d.ts +0 -31
- package/dist/utils/array-utils.d.ts.map +0 -1
- package/dist/utils/array-utils.js +0 -36
- package/dist/utils/array-utils.test.d.ts +0 -2
- package/dist/utils/array-utils.test.d.ts.map +0 -1
- package/dist/utils/array-utils.test.js +0 -107
- package/dist/utils/batch-utils.d.ts +0 -72
- package/dist/utils/batch-utils.d.ts.map +0 -1
- package/dist/utils/batch-utils.js +0 -162
- package/dist/utils/batch-utils.test.d.ts +0 -2
- package/dist/utils/batch-utils.test.d.ts.map +0 -1
- package/dist/utils/batch-utils.test.js +0 -476
- package/dist/utils/domain-utils.d.ts +0 -66
- package/dist/utils/domain-utils.d.ts.map +0 -1
- package/dist/utils/domain-utils.js +0 -164
- package/dist/utils/domain-utils.test.d.ts +0 -2
- package/dist/utils/domain-utils.test.d.ts.map +0 -1
- package/dist/utils/domain-utils.test.js +0 -346
- package/dist/utils/file-utils.d.ts +0 -4
- package/dist/utils/file-utils.d.ts.map +0 -1
- package/dist/utils/file-utils.js +0 -74
- package/dist/utils/file-utils.test.d.ts +0 -2
- package/dist/utils/file-utils.test.d.ts.map +0 -1
- package/dist/utils/file-utils.test.js +0 -51
- package/dist/utils/function-utils.d.ts +0 -73
- package/dist/utils/function-utils.d.ts.map +0 -1
- package/dist/utils/function-utils.js +0 -245
- package/dist/utils/function-utils.test.d.ts +0 -2
- package/dist/utils/function-utils.test.d.ts.map +0 -1
- package/dist/utils/function-utils.test.js +0 -110
- package/dist/utils/id-utils.d.ts +0 -13
- package/dist/utils/id-utils.d.ts.map +0 -1
- package/dist/utils/id-utils.js +0 -22
- package/dist/utils/id-utils.test.d.ts +0 -2
- package/dist/utils/id-utils.test.d.ts.map +0 -1
- package/dist/utils/id-utils.test.js +0 -22
- package/dist/utils/pagination-utils.d.ts +0 -37
- package/dist/utils/pagination-utils.d.ts.map +0 -1
- package/dist/utils/pagination-utils.js +0 -165
- package/dist/utils/pagination-utils.test.d.ts +0 -17
- package/dist/utils/pagination-utils.test.d.ts.map +0 -1
- package/dist/utils/pagination-utils.test.js +0 -461
- package/dist/utils/retry-utils.d.ts +0 -45
- package/dist/utils/retry-utils.d.ts.map +0 -1
- package/dist/utils/retry-utils.js +0 -51
- package/dist/utils/retry-utils.test.d.ts +0 -2
- package/dist/utils/retry-utils.test.d.ts.map +0 -1
- package/dist/utils/retry-utils.test.js +0 -90
- package/dist/utils/schema-utils.d.ts +0 -69
- package/dist/utils/schema-utils.d.ts.map +0 -1
- package/dist/utils/schema-utils.js +0 -72
- package/dist/utils/string-utils.d.ts +0 -40
- package/dist/utils/string-utils.d.ts.map +0 -1
- package/dist/utils/string-utils.js +0 -69
- package/dist/utils/string-utils.test.d.ts +0 -2
- package/dist/utils/string-utils.test.d.ts.map +0 -1
- package/dist/utils/string-utils.test.js +0 -59
- package/dist/utils/telemetry-utils.d.ts +0 -44
- package/dist/utils/telemetry-utils.d.ts.map +0 -1
- package/dist/utils/telemetry-utils.js +0 -55
- package/dist/utils/telemetry-utils.test.d.ts +0 -2
- package/dist/utils/telemetry-utils.test.d.ts.map +0 -1
- package/dist/utils/telemetry-utils.test.js +0 -94
- package/dist/utils/url-utils.d.ts +0 -19
- package/dist/utils/url-utils.d.ts.map +0 -1
- package/dist/utils/url-utils.js +0 -62
- package/dist/utils/url-utils.test.d.ts +0 -2
- package/dist/utils/url-utils.test.d.ts.map +0 -1
- package/dist/utils/url-utils.test.js +0 -103
- package/dist/utils/validation.d.ts +0 -4
- package/dist/utils/validation.d.ts.map +0 -1
- package/dist/utils/validation.js +0 -30
- package/dist/utils/validation.test.d.ts +0 -2
- package/dist/utils/validation.test.d.ts.map +0 -1
- package/dist/utils/validation.test.js +0 -44
package/dist/types/errors.js
DELETED
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Base class for all Zapier SDK errors
|
|
3
|
-
* Use instanceof ZapierError to check if an error is from the SDK
|
|
4
|
-
*/
|
|
5
|
-
export class ZapierError extends Error {
|
|
6
|
-
constructor(message, options = {}) {
|
|
7
|
-
super(message);
|
|
8
|
-
this.statusCode = options.statusCode;
|
|
9
|
-
this.errors = options.errors;
|
|
10
|
-
this.cause = options.cause;
|
|
11
|
-
this.response = options.response;
|
|
12
|
-
// Maintain proper prototype chain for instanceof checks
|
|
13
|
-
Object.setPrototypeOf(this, new.target.prototype);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Error thrown when API requests fail
|
|
18
|
-
*/
|
|
19
|
-
export class ZapierApiError extends ZapierError {
|
|
20
|
-
constructor(message, options = {}) {
|
|
21
|
-
super(message, options);
|
|
22
|
-
this.name = "ZapierApiError";
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Error thrown when an app is not found
|
|
27
|
-
*/
|
|
28
|
-
export class ZapierAppNotFoundError extends ZapierError {
|
|
29
|
-
constructor(message, options = {}) {
|
|
30
|
-
super(message, options);
|
|
31
|
-
this.name = "ZapierAppNotFoundError";
|
|
32
|
-
this.appKey = options.appKey;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Error thrown when validation fails (e.g., invalid parameters)
|
|
37
|
-
*/
|
|
38
|
-
export class ZapierValidationError extends ZapierError {
|
|
39
|
-
constructor(message, options = {}) {
|
|
40
|
-
super(message, options);
|
|
41
|
-
this.name = "ZapierValidationError";
|
|
42
|
-
this.details = options.details;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Error for unrecognized/unknown errors that get wrapped by safe functions
|
|
47
|
-
*/
|
|
48
|
-
export class ZapierUnknownError extends ZapierError {
|
|
49
|
-
constructor(message, options = {}) {
|
|
50
|
-
super(message, options);
|
|
51
|
-
this.name = "ZapierUnknownError";
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Error thrown for authentication and authorization failures (401/403)
|
|
56
|
-
*/
|
|
57
|
-
export class ZapierAuthenticationError extends ZapierError {
|
|
58
|
-
constructor(message, options = {}) {
|
|
59
|
-
super(message, options);
|
|
60
|
-
this.name = "ZapierAuthenticationError";
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Error thrown when a requested resource is not found
|
|
65
|
-
*/
|
|
66
|
-
export class ZapierResourceNotFoundError extends ZapierError {
|
|
67
|
-
constructor(message, options = {}) {
|
|
68
|
-
super(message, options);
|
|
69
|
-
this.name = "ZapierResourceNotFoundError";
|
|
70
|
-
this.resourceType = options.resourceType;
|
|
71
|
-
this.resourceId = options.resourceId;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Error thrown when required app or implementation configuration is missing
|
|
76
|
-
*/
|
|
77
|
-
export class ZapierConfigurationError extends ZapierError {
|
|
78
|
-
constructor(message, options = {}) {
|
|
79
|
-
super(message, options);
|
|
80
|
-
this.name = "ZapierConfigurationError";
|
|
81
|
-
this.configType = options.configType;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* Error thrown when code bundling or compilation fails
|
|
86
|
-
*/
|
|
87
|
-
export class ZapierBundleError extends ZapierError {
|
|
88
|
-
constructor(message, options = {}) {
|
|
89
|
-
super(message, options);
|
|
90
|
-
this.name = "ZapierBundleError";
|
|
91
|
-
this.buildErrors = options.buildErrors;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Error thrown when operations timeout or exceed retry limits
|
|
96
|
-
*/
|
|
97
|
-
export class ZapierTimeoutError extends ZapierError {
|
|
98
|
-
constructor(message, options = {}) {
|
|
99
|
-
super(message, options);
|
|
100
|
-
this.name = "ZapierTimeoutError";
|
|
101
|
-
this.attempts = options.attempts;
|
|
102
|
-
this.maxAttempts = options.maxAttempts;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* Error thrown when action execution fails due to errors returned from the third-party service
|
|
107
|
-
* This happens when the Actions API returns a 200 status but includes errors in the response
|
|
108
|
-
*/
|
|
109
|
-
export class ZapierActionError extends ZapierError {
|
|
110
|
-
constructor(message, options = {}) {
|
|
111
|
-
super(message, options);
|
|
112
|
-
this.name = "ZapierActionError";
|
|
113
|
-
this.appKey = options.appKey;
|
|
114
|
-
this.actionKey = options.actionKey;
|
|
115
|
-
}
|
|
116
|
-
// Legacy accessor for backward compatibility
|
|
117
|
-
get actionErrors() {
|
|
118
|
-
return this.errors;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* Error thrown when a resource is not found (404)
|
|
123
|
-
*/
|
|
124
|
-
export class ZapierNotFoundError extends ZapierError {
|
|
125
|
-
constructor(message, options = {}) {
|
|
126
|
-
super(message, options);
|
|
127
|
-
this.name = "ZapierNotFoundError";
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* Utility function to format error messages for display
|
|
132
|
-
*/
|
|
133
|
-
export function formatErrorMessage(error) {
|
|
134
|
-
let message = error.message;
|
|
135
|
-
// Add additional context from errors array if available
|
|
136
|
-
if (error.errors && error.errors.length > 0) {
|
|
137
|
-
const additionalErrors = error.errors.slice(1); // Skip first error (already in message)
|
|
138
|
-
if (additionalErrors.length > 0) {
|
|
139
|
-
const errorDetails = additionalErrors
|
|
140
|
-
.map((err) => ` • ${err.detail || err.title || err.code}`)
|
|
141
|
-
.join("\n");
|
|
142
|
-
message += "\n\nAdditional errors:\n" + errorDetails;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
// Add error-specific context
|
|
146
|
-
if (error instanceof ZapierAppNotFoundError && error.appKey) {
|
|
147
|
-
message += `\nApp key: ${error.appKey}`;
|
|
148
|
-
}
|
|
149
|
-
if (error instanceof ZapierActionError && (error.appKey || error.actionKey)) {
|
|
150
|
-
const context = [];
|
|
151
|
-
if (error.appKey)
|
|
152
|
-
context.push(`App: ${error.appKey}`);
|
|
153
|
-
if (error.actionKey)
|
|
154
|
-
context.push(`Action: ${error.actionKey}`);
|
|
155
|
-
message += `\n${context.join(", ")}`;
|
|
156
|
-
}
|
|
157
|
-
if (error instanceof ZapierResourceNotFoundError &&
|
|
158
|
-
(error.resourceType || error.resourceId)) {
|
|
159
|
-
const context = [];
|
|
160
|
-
if (error.resourceType)
|
|
161
|
-
context.push(`Type: ${error.resourceType}`);
|
|
162
|
-
if (error.resourceId)
|
|
163
|
-
context.push(`ID: ${error.resourceId}`);
|
|
164
|
-
message += `\n${context.join(", ")}`;
|
|
165
|
-
}
|
|
166
|
-
if (error instanceof ZapierTimeoutError &&
|
|
167
|
-
(error.attempts || error.maxAttempts)) {
|
|
168
|
-
const context = [];
|
|
169
|
-
if (error.attempts)
|
|
170
|
-
context.push(`Attempts: ${error.attempts}`);
|
|
171
|
-
if (error.maxAttempts)
|
|
172
|
-
context.push(`Max attempts: ${error.maxAttempts}`);
|
|
173
|
-
message += `\n${context.join(", ")}`;
|
|
174
|
-
}
|
|
175
|
-
if (error instanceof ZapierBundleError &&
|
|
176
|
-
error.buildErrors &&
|
|
177
|
-
error.buildErrors.length > 0) {
|
|
178
|
-
message +=
|
|
179
|
-
"\n\nBuild errors:\n" +
|
|
180
|
-
error.buildErrors.map((err) => ` • ${err}`).join("\n");
|
|
181
|
-
}
|
|
182
|
-
// Add status code if available and not already obvious from the message
|
|
183
|
-
if (error.statusCode && !message.includes(`${error.statusCode}`)) {
|
|
184
|
-
message += `\nHTTP Status: ${error.statusCode}`;
|
|
185
|
-
}
|
|
186
|
-
return message;
|
|
187
|
-
}
|
package/dist/types/events.d.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* SDK Event System
|
|
3
|
-
*
|
|
4
|
-
* This module provides common event type definitions for the SDK's
|
|
5
|
-
* event system, including authentication, API, and loading events.
|
|
6
|
-
*/
|
|
7
|
-
export interface SdkEvent {
|
|
8
|
-
type: string;
|
|
9
|
-
payload?: Record<string, unknown>;
|
|
10
|
-
timestamp?: number;
|
|
11
|
-
}
|
|
12
|
-
export interface AuthEvent extends SdkEvent {
|
|
13
|
-
type: "auth_refreshing" | "auth_success" | "auth_error" | "auth_logout";
|
|
14
|
-
payload?: {
|
|
15
|
-
message?: string;
|
|
16
|
-
error?: string;
|
|
17
|
-
operation?: string;
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export interface ApiEvent extends SdkEvent {
|
|
21
|
-
type: "api_request" | "api_response" | "api_error";
|
|
22
|
-
payload?: {
|
|
23
|
-
url?: string;
|
|
24
|
-
method?: string;
|
|
25
|
-
status?: number;
|
|
26
|
-
duration?: number;
|
|
27
|
-
error?: string;
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
export interface LoadingEvent extends SdkEvent {
|
|
31
|
-
type: "loading_start" | "loading_end";
|
|
32
|
-
payload?: {
|
|
33
|
-
operation?: string;
|
|
34
|
-
resource?: string;
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
export type EventCallback = (event: SdkEvent) => void;
|
|
38
|
-
//# sourceMappingURL=events.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/types/events.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,SAAU,SAAQ,QAAQ;IACzC,IAAI,EAAE,iBAAiB,GAAG,cAAc,GAAG,YAAY,GAAG,aAAa,CAAC;IACxE,OAAO,CAAC,EAAE;QACR,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;CACH;AAED,MAAM,WAAW,QAAS,SAAQ,QAAQ;IACxC,IAAI,EAAE,aAAa,GAAG,cAAc,GAAG,WAAW,CAAC;IACnD,OAAO,CAAC,EAAE;QACR,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;CACH;AAED,MAAM,WAAW,YAAa,SAAQ,QAAQ;IAC5C,IAAI,EAAE,eAAe,GAAG,aAAa,CAAC;IACtC,OAAO,CAAC,EAAE;QACR,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;CACH;AAED,MAAM,MAAM,aAAa,GAAG,CAAC,KAAK,EAAE,QAAQ,KAAK,IAAI,CAAC"}
|
package/dist/types/events.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { ApiClient } from "../api/types";
|
|
2
|
-
/**
|
|
3
|
-
* Function-related types and interfaces
|
|
4
|
-
*/
|
|
5
|
-
export interface FunctionOptions {
|
|
6
|
-
/** Base URL for Zapier API */
|
|
7
|
-
baseUrl?: string;
|
|
8
|
-
/** Authentication token */
|
|
9
|
-
token?: string;
|
|
10
|
-
/** Function to dynamically resolve authentication token */
|
|
11
|
-
getToken?: () => Promise<string | undefined>;
|
|
12
|
-
/** Optional pre-instantiated API client */
|
|
13
|
-
api?: ApiClient;
|
|
14
|
-
/** Enable debug logging */
|
|
15
|
-
debug?: boolean;
|
|
16
|
-
/** Custom fetch implementation */
|
|
17
|
-
fetch?: typeof globalThis.fetch;
|
|
18
|
-
}
|
|
19
|
-
export type PaginatedSdkFunction<TOptions, TItem> = (options: TOptions) => Promise<{
|
|
20
|
-
data: TItem[];
|
|
21
|
-
}> & AsyncIterable<{
|
|
22
|
-
data: TItem[];
|
|
23
|
-
nextCursor?: string;
|
|
24
|
-
}> & {
|
|
25
|
-
items(): AsyncIterable<TItem>;
|
|
26
|
-
};
|
|
27
|
-
//# sourceMappingURL=functions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../src/types/functions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C;;GAEG;AAGH,MAAM,WAAW,eAAe;IAC9B,8BAA8B;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,2BAA2B;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,MAAM,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC7C,2CAA2C;IAC3C,GAAG,CAAC,EAAE,SAAS,CAAC;IAChB,2BAA2B;IAC3B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,kCAAkC;IAClC,KAAK,CAAC,EAAE,OAAO,UAAU,CAAC,KAAK,CAAC;CACjC;AAGD,MAAM,MAAM,oBAAoB,CAAC,QAAQ,EAAE,KAAK,IAAI,CAClD,OAAO,EAAE,QAAQ,KACd,OAAO,CAAC;IAAE,IAAI,EAAE,KAAK,EAAE,CAAA;CAAE,CAAC,GAC7B,aAAa,CAAC;IAAE,IAAI,EAAE,KAAK,EAAE,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,GAAG;IACtD,KAAK,IAAI,aAAa,CAAC,KAAK,CAAC,CAAC;CAC/B,CAAC"}
|
package/dist/types/functions.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/types/plugin.d.ts
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ------------------------------
|
|
3
|
-
* Plugin Type System with Explicit Context Dependencies
|
|
4
|
-
* ------------------------------
|
|
5
|
-
*
|
|
6
|
-
* This system makes context dependencies explicit to restore TypeScript's
|
|
7
|
-
* ability to catch missing context at compile time.
|
|
8
|
-
*/
|
|
9
|
-
import type { z } from "zod";
|
|
10
|
-
import type { BaseSdkOptions } from "./sdk";
|
|
11
|
-
export interface PluginDependencies<TSdk = {}, TContext = {}> {
|
|
12
|
-
sdk: TSdk;
|
|
13
|
-
context: TContext;
|
|
14
|
-
}
|
|
15
|
-
export interface PluginProvides extends Record<string, any> {
|
|
16
|
-
context?: Record<string, any>;
|
|
17
|
-
}
|
|
18
|
-
export interface PluginMeta {
|
|
19
|
-
categories: string[];
|
|
20
|
-
type?: "list" | "item";
|
|
21
|
-
itemType?: string;
|
|
22
|
-
returnType?: string;
|
|
23
|
-
inputSchema: z.ZodSchema;
|
|
24
|
-
outputSchema?: z.ZodSchema;
|
|
25
|
-
resolvers?: Record<string, any>;
|
|
26
|
-
[key: string]: any;
|
|
27
|
-
}
|
|
28
|
-
export type ExtractSdkProperties<T extends Record<string, any>> = Omit<T, "context">;
|
|
29
|
-
export type ExtractContextProperties<T extends PluginProvides> = T["context"];
|
|
30
|
-
export type GetSdkType<TPluginProvides extends PluginProvides> = ExtractSdkProperties<TPluginProvides> & {
|
|
31
|
-
getContext(): NonNullable<ExtractContextProperties<TPluginProvides>>;
|
|
32
|
-
};
|
|
33
|
-
export type GetContextType<TPluginProvides extends PluginProvides> = NonNullable<ExtractContextProperties<TPluginProvides>>;
|
|
34
|
-
export type PluginOptions<TSdk = {}, TContext = {}> = {
|
|
35
|
-
sdk: TSdk;
|
|
36
|
-
context: TContext & {
|
|
37
|
-
meta: Record<string, any>;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* Plugin interface — now has 3 type params:
|
|
42
|
-
*
|
|
43
|
-
* TRequiresContext = what this plugin *needs* in context
|
|
44
|
-
* TProvides = what this plugin *returns* (sdk + context)
|
|
45
|
-
* TSdk = current sdk shape when plugin runs
|
|
46
|
-
*/
|
|
47
|
-
export interface Plugin<TSdk = {}, TRequiresContext = {}, TProvides extends PluginProvides = PluginProvides> {
|
|
48
|
-
(params: {
|
|
49
|
-
sdk: TSdk;
|
|
50
|
-
context: TRequiresContext & {
|
|
51
|
-
meta: Record<string, PluginMeta>;
|
|
52
|
-
options: BaseSdkOptions;
|
|
53
|
-
};
|
|
54
|
-
}): TProvides;
|
|
55
|
-
}
|
|
56
|
-
type MissingContextKeys<TRequired, TCurrent> = TRequired extends Record<string, any> ? TCurrent extends Record<string, any> ? {
|
|
57
|
-
[K in keyof TRequired]: K extends keyof TCurrent ? never : K;
|
|
58
|
-
}[keyof TRequired] : keyof TRequired : never;
|
|
59
|
-
type ContextError<TRequired, TCurrent> = MissingContextKeys<TRequired, TCurrent> extends never ? never : MissingContextKeys<TRequired, TCurrent> extends infer Missing ? Missing extends string ? `❌ Missing required context: { ${Missing}: any }` : Missing extends number ? `❌ Missing required context: { ${Missing}: any }` : `❌ Missing required context properties. Required: ${keyof TRequired extends string ? keyof TRequired : "unknown"}, Available: ${keyof TCurrent extends string ? keyof TCurrent : "unknown"}` : "❌ Context requirement not satisfied";
|
|
60
|
-
/**
|
|
61
|
-
* SDK interface — result of createSdk()
|
|
62
|
-
*
|
|
63
|
-
* addPlugin now enforces that TRequiresContext is assignable to TCurrentContext.
|
|
64
|
-
* If not, TypeScript will emit a detailed error showing missing properties.
|
|
65
|
-
*/
|
|
66
|
-
export type Sdk<TCurrentSdk = {}, TCurrentContext = {
|
|
67
|
-
meta: Record<string, PluginMeta>;
|
|
68
|
-
}> = TCurrentSdk & {
|
|
69
|
-
addPlugin<TRequiresContext, TProvides extends PluginProvides>(plugin: Plugin<TCurrentSdk & {
|
|
70
|
-
getContext(): TCurrentContext;
|
|
71
|
-
}, TRequiresContext, TProvides>, options?: any): TCurrentContext extends TRequiresContext ? Sdk<TCurrentSdk & ExtractSdkProperties<TProvides>, TCurrentContext & NonNullable<ExtractContextProperties<TProvides>>> : ContextError<TRequiresContext, TCurrentContext>;
|
|
72
|
-
getContext(): TCurrentContext;
|
|
73
|
-
};
|
|
74
|
-
export {};
|
|
75
|
-
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/types/plugin.ts"],"names":[],"mappings":"AAAA;;;;;;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SAAS,SAAS,MAAM,GAAG,MAAM,SAAS,GAAG,SAAS,gBAAgB,MAAM,QAAQ,SAAS,MAAM,GAAG,MAAM,QAAQ,GAAG,SAAS,EAAE,GAChM,qCAAqC,CAAC;AAE9C;;;;;GAKG;AACH,MAAM,MAAM,GAAG,CACb,WAAW,GAAG,EAAE,EAChB,eAAe,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;CAAE,IACpD,WAAW,GAAG;IAChB,SAAS,CAAC,gBAAgB,EAAE,SAAS,SAAS,cAAc,EAC1D,MAAM,EAAE,MAAM,CACZ,WAAW,GAAG;QAAE,UAAU,IAAI,eAAe,CAAA;KAAE,EAC/C,gBAAgB,EAChB,SAAS,CACV,EACD,OAAO,CAAC,EAAE,GAAG,GACZ,eAAe,SAAS,gBAAgB,GACvC,GAAG,CACD,WAAW,GAAG,oBAAoB,CAAC,SAAS,CAAC,EAC7C,eAAe,GAAG,WAAW,CAAC,wBAAwB,CAAC,SAAS,CAAC,CAAC,CACnE,GACD,YAAY,CAAC,gBAAgB,EAAE,eAAe,CAAC,CAAC;IACpD,UAAU,IAAI,eAAe,CAAC;CAC/B,CAAC"}
|
package/dist/types/plugin.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ------------------------------
|
|
3
|
-
* Plugin Type System with Explicit Context Dependencies
|
|
4
|
-
* ------------------------------
|
|
5
|
-
*
|
|
6
|
-
* This system makes context dependencies explicit to restore TypeScript's
|
|
7
|
-
* ability to catch missing context at compile time.
|
|
8
|
-
*/
|
|
9
|
-
export {};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const AppKeyPropertySchema: z.ZodString & {
|
|
3
|
-
_def: z.core.$ZodStringDef & import("..").PositionalMetadata;
|
|
4
|
-
};
|
|
5
|
-
export declare const ActionTypePropertySchema: z.ZodEnum<{
|
|
6
|
-
search: "search";
|
|
7
|
-
filter: "filter";
|
|
8
|
-
read: "read";
|
|
9
|
-
read_bulk: "read_bulk";
|
|
10
|
-
run: "run";
|
|
11
|
-
search_and_write: "search_and_write";
|
|
12
|
-
search_or_write: "search_or_write";
|
|
13
|
-
write: "write";
|
|
14
|
-
}>;
|
|
15
|
-
export declare const ActionKeyPropertySchema: z.ZodString;
|
|
16
|
-
export declare const AuthenticationIdPropertySchema: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
17
|
-
export declare const InputsPropertySchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
18
|
-
export declare const LimitPropertySchema: z.ZodDefault<z.ZodNumber>;
|
|
19
|
-
export declare const OffsetPropertySchema: z.ZodDefault<z.ZodNumber>;
|
|
20
|
-
export declare const OutputPropertySchema: z.ZodString;
|
|
21
|
-
export declare const DebugPropertySchema: z.ZodDefault<z.ZodBoolean>;
|
|
22
|
-
export declare const ParamsPropertySchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
23
|
-
export type AppKeyProperty = z.infer<typeof AppKeyPropertySchema>;
|
|
24
|
-
export type ActionTypeProperty = z.infer<typeof ActionTypePropertySchema>;
|
|
25
|
-
export type ActionKeyProperty = z.infer<typeof ActionKeyPropertySchema>;
|
|
26
|
-
export type AuthenticationIdProperty = z.infer<typeof AuthenticationIdPropertySchema>;
|
|
27
|
-
export type InputsProperty = z.infer<typeof InputsPropertySchema>;
|
|
28
|
-
export type LimitProperty = z.infer<typeof LimitPropertySchema>;
|
|
29
|
-
export type OffsetProperty = z.infer<typeof OffsetPropertySchema>;
|
|
30
|
-
export type OutputProperty = z.infer<typeof OutputPropertySchema>;
|
|
31
|
-
export type DebugProperty = z.infer<typeof DebugPropertySchema>;
|
|
32
|
-
export type ParamsProperty = z.infer<typeof ParamsPropertySchema>;
|
|
33
|
-
//# sourceMappingURL=properties.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"properties.d.ts","sourceRoot":"","sources":["../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,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
package/dist/types/properties.js
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { withPositional } from "../utils/schema-utils";
|
|
3
|
-
import { MAX_PAGE_LIMIT } from "../constants";
|
|
4
|
-
// Shared property definitions for common parameters across functions
|
|
5
|
-
// These can be reused in function schemas without duplication
|
|
6
|
-
export const AppKeyPropertySchema = withPositional(z
|
|
7
|
-
.string()
|
|
8
|
-
.min(1)
|
|
9
|
-
.describe("App key (e.g., 'SlackCLIAPI' or slug like 'github')"));
|
|
10
|
-
export const ActionTypePropertySchema = z
|
|
11
|
-
.enum([
|
|
12
|
-
"read",
|
|
13
|
-
"read_bulk",
|
|
14
|
-
"write",
|
|
15
|
-
"run",
|
|
16
|
-
"search",
|
|
17
|
-
"search_or_write",
|
|
18
|
-
"search_and_write",
|
|
19
|
-
"filter",
|
|
20
|
-
])
|
|
21
|
-
.describe("Action type that matches the action's defined type");
|
|
22
|
-
export const ActionKeyPropertySchema = z
|
|
23
|
-
.string()
|
|
24
|
-
.min(1)
|
|
25
|
-
.describe("Action key to execute");
|
|
26
|
-
export const AuthenticationIdPropertySchema = z
|
|
27
|
-
.union([z.string(), z.number().int().positive()])
|
|
28
|
-
.describe("Authentication ID to use for this action");
|
|
29
|
-
export const InputsPropertySchema = z
|
|
30
|
-
.record(z.string(), z.unknown())
|
|
31
|
-
.describe("Input parameters for the action");
|
|
32
|
-
export const LimitPropertySchema = z
|
|
33
|
-
.number()
|
|
34
|
-
.int()
|
|
35
|
-
.min(1)
|
|
36
|
-
.max(MAX_PAGE_LIMIT)
|
|
37
|
-
.default(50)
|
|
38
|
-
.describe("Maximum number of items to return");
|
|
39
|
-
export const OffsetPropertySchema = z
|
|
40
|
-
.number()
|
|
41
|
-
.int()
|
|
42
|
-
.min(0)
|
|
43
|
-
.default(0)
|
|
44
|
-
.describe("Number of items to skip for pagination");
|
|
45
|
-
export const OutputPropertySchema = z.string().describe("Output file path");
|
|
46
|
-
export const DebugPropertySchema = z
|
|
47
|
-
.boolean()
|
|
48
|
-
.default(false)
|
|
49
|
-
.describe("Enable debug logging");
|
|
50
|
-
export const ParamsPropertySchema = z
|
|
51
|
-
.record(z.string(), z.unknown())
|
|
52
|
-
.describe("Additional parameters");
|
package/dist/types/sdk.d.ts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* SDK-related types and interfaces
|
|
3
|
-
*/
|
|
4
|
-
import type { EventCallback } from "./events";
|
|
5
|
-
import type { EventEmissionConfig } from "../plugins/eventEmission";
|
|
6
|
-
import type { Manifest } from "../plugins/manifest";
|
|
7
|
-
export interface BaseSdkOptions {
|
|
8
|
-
token?: string;
|
|
9
|
-
getToken?: () => Promise<string | undefined>;
|
|
10
|
-
onEvent?: EventCallback;
|
|
11
|
-
fetch?: typeof fetch;
|
|
12
|
-
baseUrl?: string;
|
|
13
|
-
authBaseUrl?: string;
|
|
14
|
-
authClientId?: string;
|
|
15
|
-
trackingBaseUrl?: string;
|
|
16
|
-
debug?: boolean;
|
|
17
|
-
manifestPath?: string;
|
|
18
|
-
manifest?: Manifest;
|
|
19
|
-
eventEmission?: EventEmissionConfig;
|
|
20
|
-
}
|
|
21
|
-
import type { ListInputFieldsSdkFunction } from "../plugins/listInputFields/schemas";
|
|
22
|
-
import type { GetAuthenticationSdkFunction } from "../plugins/getAuthentication/schemas";
|
|
23
|
-
import type { FindFirstAuthenticationSdkFunction } from "../plugins/findFirstAuthentication/schemas";
|
|
24
|
-
import type { FindUniqueAuthenticationSdkFunction } from "../plugins/findUniqueAuthentication/schemas";
|
|
25
|
-
import type { RelayRequestSdkFunction } from "../plugins/request/schemas";
|
|
26
|
-
import type { z } from "zod";
|
|
27
|
-
import type { RegistryPluginProvides } from "../plugins/registry";
|
|
28
|
-
import type { GetProfilePluginProvides } from "../plugins/getProfile";
|
|
29
|
-
import type { EventEmissionProvides } from "../plugins/eventEmission";
|
|
30
|
-
import type { ApiPluginProvides } from "../plugins/api";
|
|
31
|
-
import type { AppsPluginProvides, ZapierSdkApps } from "../plugins/apps";
|
|
32
|
-
import type { ActionProxy } from "../plugins/apps/schemas";
|
|
33
|
-
import type { FetchPluginProvides } from "../plugins/fetch";
|
|
34
|
-
import type { ListAppsPluginProvides } from "../plugins/listApps";
|
|
35
|
-
import type { GetAppPluginProvides } from "../plugins/getApp";
|
|
36
|
-
import type { ListActionsPluginProvides } from "../plugins/listActions";
|
|
37
|
-
import type { GetActionPluginProvides } from "../plugins/getAction";
|
|
38
|
-
import type { RunActionPluginProvides } from "../plugins/runAction";
|
|
39
|
-
import type { ListAuthenticationsPluginProvides } from "../plugins/listAuthentications";
|
|
40
|
-
import type { GetAuthenticationPluginProvides } from "../plugins/getAuthentication";
|
|
41
|
-
import type { FindFirstAuthenticationPluginProvides } from "../plugins/findFirstAuthentication";
|
|
42
|
-
import type { FindUniqueAuthenticationPluginProvides } from "../plugins/findUniqueAuthentication";
|
|
43
|
-
import type { ListInputFieldsPluginProvides } from "../plugins/listInputFields";
|
|
44
|
-
import type { GetInputFieldsSchemaPluginProvides } from "../plugins/getInputFieldsSchema";
|
|
45
|
-
import type { ListInputFieldChoicesPluginProvides } from "../plugins/listInputFieldChoices";
|
|
46
|
-
import type { RequestPluginProvides } from "../plugins/request";
|
|
47
|
-
import type { GetSdkType } from "./plugin";
|
|
48
|
-
import type { ManifestPluginProvides } from "../plugins/manifest";
|
|
49
|
-
export interface FunctionRegistryEntry {
|
|
50
|
-
name: string;
|
|
51
|
-
type?: "list" | "item";
|
|
52
|
-
itemType?: string;
|
|
53
|
-
returnType?: string;
|
|
54
|
-
inputSchema?: z.ZodSchema;
|
|
55
|
-
inputParameters?: Array<{
|
|
56
|
-
name: string;
|
|
57
|
-
schema: z.ZodSchema;
|
|
58
|
-
}>;
|
|
59
|
-
outputSchema?: z.ZodSchema;
|
|
60
|
-
categories: string[];
|
|
61
|
-
resolvers?: Record<string, any>;
|
|
62
|
-
packages?: string[];
|
|
63
|
-
}
|
|
64
|
-
export interface ZapierSdkFunctions extends ListInputFieldsSdkFunction, GetAuthenticationSdkFunction, FindFirstAuthenticationSdkFunction, FindUniqueAuthenticationSdkFunction, RelayRequestSdkFunction {
|
|
65
|
-
}
|
|
66
|
-
export interface ZapierSdk extends GetSdkType<RegistryPluginProvides & FetchPluginProvides & AppsPluginProvides & ListAppsPluginProvides & ManifestPluginProvides & GetAppPluginProvides & ListActionsPluginProvides & GetActionPluginProvides & RunActionPluginProvides & ListAuthenticationsPluginProvides & GetAuthenticationPluginProvides & FindFirstAuthenticationPluginProvides & FindUniqueAuthenticationPluginProvides & ListInputFieldsPluginProvides & GetInputFieldsSchemaPluginProvides & ListInputFieldChoicesPluginProvides & RequestPluginProvides & GetProfilePluginProvides & EventEmissionProvides & ApiPluginProvides> {
|
|
67
|
-
apps: ActionProxy & ZapierSdkApps;
|
|
68
|
-
}
|
|
69
|
-
//# sourceMappingURL=sdk.d.ts.map
|
package/dist/types/sdk.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../src/types/sdk.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAGpD,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC7C,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,KAAK,CAAC,EAAE,OAAO,KAAK,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB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AAC;CACrB;AAGD,MAAM,WAAW,kBACf,SAAQ,0BAA0B,EAChC,4BAA4B,EAC5B,kCAAkC,EAClC,mCAAmC,EACnC,uBAAuB;CAE1B;AAUD,MAAM,WAAW,SACf,SAAQ,UAAU,CAChB,sBAAsB,GACpB,mBAAmB,GACnB,kBAAkB,GAClB,sBAAsB,GACtB,sBAAsB,GACtB,oBAAoB,GACpB,yBAAyB,GACzB,uBAAuB,GACvB,uBAAuB,GACvB,iCAAiC,GACjC,+BAA+B,GAC/B,qCAAqC,GACrC,sCAAsC,GACtC,6BAA6B,GAC7B,kCAAkC,GAClC,mCAAmC,GACnC,qBAAqB,GACrB,wBAAwB,GACxB,qBAAqB,GACrB,iBAAiB,CACpB;IAED,IAAI,EAAE,WAAW,GAAG,aAAa,CAAC;CACnC"}
|
package/dist/types/sdk.js
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Event emission types matching Avro schemas for SDK telemetry
|
|
3
|
-
*
|
|
4
|
-
* These interfaces correspond to the Avro schemas:
|
|
5
|
-
* - application_lifecycle_event.avsc
|
|
6
|
-
* - error_occurred_event.avsc
|
|
7
|
-
*/
|
|
8
|
-
export interface BaseEvent {
|
|
9
|
-
event_id: string;
|
|
10
|
-
timestamp_ms: number;
|
|
11
|
-
release_id: string;
|
|
12
|
-
customuser_id?: number | null;
|
|
13
|
-
account_id?: number | null;
|
|
14
|
-
identity_id?: number | null;
|
|
15
|
-
visitor_id?: string | null;
|
|
16
|
-
correlation_id?: string | null;
|
|
17
|
-
}
|
|
18
|
-
export interface ErrorOccurredEvent extends BaseEvent {
|
|
19
|
-
zap_id?: number | null;
|
|
20
|
-
node_id?: number | null;
|
|
21
|
-
selected_api?: string | null;
|
|
22
|
-
app_id?: number | null;
|
|
23
|
-
app_version_id?: number | null;
|
|
24
|
-
error_message: string;
|
|
25
|
-
error_type?: string | null;
|
|
26
|
-
error_status_code?: number | null;
|
|
27
|
-
error_stack_trace?: string | null;
|
|
28
|
-
error_source_method?: string | null;
|
|
29
|
-
error_source_file?: string | null;
|
|
30
|
-
error_line_number?: number | null;
|
|
31
|
-
operation_type?: string | null;
|
|
32
|
-
operation_key?: string | null;
|
|
33
|
-
error_severity?: string | null;
|
|
34
|
-
is_user_facing: boolean;
|
|
35
|
-
is_recoverable?: boolean | null;
|
|
36
|
-
sdk_version?: string | null;
|
|
37
|
-
error_metadata?: Record<string, string | null> | null;
|
|
38
|
-
parent_error_id?: string | null;
|
|
39
|
-
error_occurred_timestamp_ms?: number | null;
|
|
40
|
-
error_code?: string | null;
|
|
41
|
-
recovery_attempted?: boolean | null;
|
|
42
|
-
recovery_action?: string | null;
|
|
43
|
-
recovery_successful?: boolean | null;
|
|
44
|
-
environment?: string | null;
|
|
45
|
-
execution_time_before_error_ms?: number | null;
|
|
46
|
-
}
|
|
47
|
-
export interface ApplicationLifecycleEvent extends BaseEvent {
|
|
48
|
-
lifecycle_event_type: "startup" | "exit" | "signal_termination";
|
|
49
|
-
selected_api?: string | null;
|
|
50
|
-
app_id?: number | null;
|
|
51
|
-
app_version_id?: number | null;
|
|
52
|
-
sdk_version?: string | null;
|
|
53
|
-
cli_version?: string | null;
|
|
54
|
-
exit_code?: number | null;
|
|
55
|
-
signal_name?: string | null;
|
|
56
|
-
uptime_ms?: number | null;
|
|
57
|
-
memory_usage_bytes?: number | null;
|
|
58
|
-
peak_memory_usage_bytes?: number | null;
|
|
59
|
-
cpu_time_ms?: number | null;
|
|
60
|
-
os_platform?: string | null;
|
|
61
|
-
os_release?: string | null;
|
|
62
|
-
os_architecture?: string | null;
|
|
63
|
-
platform_versions?: Record<string, string | null> | null;
|
|
64
|
-
environment?: string | null;
|
|
65
|
-
is_ci_environment?: boolean | null;
|
|
66
|
-
ci_platform?: string | null;
|
|
67
|
-
session_id?: string | null;
|
|
68
|
-
metadata?: Record<string, string | null> | null;
|
|
69
|
-
process_argv?: (string | null)[] | null;
|
|
70
|
-
is_graceful_shutdown?: boolean | null;
|
|
71
|
-
shutdown_duration_ms?: number | null;
|
|
72
|
-
active_requests_count?: number | null;
|
|
73
|
-
}
|
|
74
|
-
export interface MethodCalledEvent extends BaseEvent {
|
|
75
|
-
method_name: string;
|
|
76
|
-
method_module: string | null;
|
|
77
|
-
execution_duration_ms: number;
|
|
78
|
-
success_flag: boolean;
|
|
79
|
-
error_message: string | null;
|
|
80
|
-
error_type: string | null;
|
|
81
|
-
argument_count: number;
|
|
82
|
-
is_paginated: boolean;
|
|
83
|
-
sdk_version: string;
|
|
84
|
-
environment: string | null;
|
|
85
|
-
selected_api: string | null;
|
|
86
|
-
app_id: number | null;
|
|
87
|
-
app_version_id: number | null;
|
|
88
|
-
zap_id: number | null;
|
|
89
|
-
node_id: number | null;
|
|
90
|
-
operation_type: string | null;
|
|
91
|
-
operation_key: string | null;
|
|
92
|
-
call_context: string | null;
|
|
93
|
-
is_retry: boolean;
|
|
94
|
-
retry_attempt: number | null;
|
|
95
|
-
argument_types: string[] | null;
|
|
96
|
-
return_type: string | null;
|
|
97
|
-
caller_method: string | null;
|
|
98
|
-
call_stack_depth: number | null;
|
|
99
|
-
is_synchronous: boolean | null;
|
|
100
|
-
cpu_time_ms: number | null;
|
|
101
|
-
memory_usage_bytes: number | null;
|
|
102
|
-
}
|
|
103
|
-
export type TelemetryEvent = ErrorOccurredEvent | ApplicationLifecycleEvent | MethodCalledEvent;
|
|
104
|
-
export type TelemetryEventType = "error_occurred" | "application_lifecycle" | "method_called";
|
|
105
|
-
//# sourceMappingURL=telemetry-events.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"telemetry-events.d.ts","sourceRoot":"","sources":["../../src/types/telemetry-events.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,GAAG,IA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