n8n-nodes-base 1.5.0 → 1.5.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.
@@ -0,0 +1,9 @@
1
+ import type { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
2
+ export declare class StrapiTokenApi implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ documentationUrl: string;
6
+ properties: INodeProperties[];
7
+ authenticate: IAuthenticateGeneric;
8
+ test: ICredentialTestRequest;
9
+ }
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StrapiTokenApi = void 0;
4
+ class StrapiTokenApi {
5
+ constructor() {
6
+ this.name = 'strapiTokenApi';
7
+ this.displayName = 'Strapi API Token';
8
+ this.documentationUrl = 'strapi';
9
+ this.properties = [
10
+ {
11
+ displayName: 'API Token',
12
+ name: 'apiToken',
13
+ type: 'string',
14
+ typeOptions: { password: true },
15
+ default: '',
16
+ },
17
+ {
18
+ displayName: 'URL',
19
+ name: 'url',
20
+ type: 'string',
21
+ default: '',
22
+ placeholder: 'https://api.example.com',
23
+ },
24
+ {
25
+ displayName: 'API Version',
26
+ name: 'apiVersion',
27
+ default: 'v3',
28
+ type: 'options',
29
+ description: 'The version of api to be used',
30
+ options: [
31
+ {
32
+ name: 'Version 4',
33
+ value: 'v4',
34
+ description: 'API version supported by Strapi 4',
35
+ },
36
+ {
37
+ name: 'Version 3',
38
+ value: 'v3',
39
+ description: 'API version supported by Strapi 3',
40
+ },
41
+ ],
42
+ },
43
+ ];
44
+ this.authenticate = {
45
+ type: 'generic',
46
+ properties: {
47
+ headers: {
48
+ Authorization: '=Bearer {{$credentials.apiToken}}',
49
+ },
50
+ },
51
+ };
52
+ this.test = {
53
+ request: {
54
+ baseURL: '={{$credentials.url}}',
55
+ url: '={{$credentials.apiVersion === "v3" ? "/users/count" : "/api/users/count"}}',
56
+ ignoreHttpStatusErrors: true,
57
+ },
58
+ rules: [
59
+ {
60
+ type: 'responseSuccessBody',
61
+ properties: {
62
+ key: 'error.name',
63
+ value: 'UnauthorizedError',
64
+ message: 'Invalid API token',
65
+ },
66
+ },
67
+ ],
68
+ };
69
+ }
70
+ }
71
+ exports.StrapiTokenApi = StrapiTokenApi;
72
+ //# sourceMappingURL=StrapiTokenApi.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StrapiTokenApi.credentials.js","sourceRoot":"","sources":["../../credentials/StrapiTokenApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,cAAc;IAA3B;QACC,SAAI,GAAG,gBAAgB,CAAC;QAExB,gBAAW,GAAG,kBAAkB,CAAC;QAEjC,qBAAgB,GAAG,QAAQ,CAAC;QAE5B,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,WAAW;gBACxB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,KAAK;gBAClB,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,yBAAyB;aACtC;YACD;gBACC,WAAW,EAAE,aAAa;gBAC1B,IAAI,EAAE,YAAY;gBAClB,OAAO,EAAE,IAAI;gBACb,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,+BAA+B;gBAC5C,OAAO,EAAE;oBACR;wBACC,IAAI,EAAE,WAAW;wBACjB,KAAK,EAAE,IAAI;wBACX,WAAW,EAAE,mCAAmC;qBAChD;oBACD;wBACC,IAAI,EAAE,WAAW;wBACjB,KAAK,EAAE,IAAI;wBACX,WAAW,EAAE,mCAAmC;qBAChD;iBACD;aACD;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,aAAa,EAAE,mCAAmC;iBAClD;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,uBAAuB;gBAChC,GAAG,EAAE,6EAA6E;gBAClF,sBAAsB,EAAE,IAAI;aAC5B;YACD,KAAK,EAAE;gBACN;oBACC,IAAI,EAAE,qBAAqB;oBAC3B,UAAU,EAAE;wBACX,GAAG,EAAE,YAAY;wBACjB,KAAK,EAAE,mBAAmB;wBAC1B,OAAO,EAAE,mBAAmB;qBAC5B;iBACD;aACD;SACD,CAAC;IACH,CAAC;CAAA;AArED,wCAqEC"}
@@ -2279,6 +2279,13 @@
2279
2279
  "strapi"
2280
2280
  ]
2281
2281
  },
2282
+ "strapiTokenApi": {
2283
+ "className": "StrapiTokenApi",
2284
+ "sourcePath": "dist/credentials/StrapiTokenApi.credentials.js",
2285
+ "nodesToTestWith": [
2286
+ "strapi"
2287
+ ]
2288
+ },
2282
2289
  "stravaOAuth2Api": {
2283
2290
  "className": "StravaOAuth2Api",
2284
2291
  "sourcePath": "dist/credentials/StravaOAuth2Api.credentials.js",
@@ -1,6 +1,8 @@
1
1
  import type { IDataObject, IExecuteFunctions, IHookFunctions, ILoadOptionsFunctions, IWebhookFunctions } from 'n8n-workflow';
2
2
  export declare const removeTrailingSlash: (url: string) => string;
3
3
  export declare function strapiApiRequest(this: IExecuteFunctions | ILoadOptionsFunctions | IHookFunctions | IWebhookFunctions, method: string, resource: string, body?: IDataObject, qs?: IDataObject, uri?: string, headers?: IDataObject): Promise<any>;
4
- export declare function getToken(this: IExecuteFunctions | ILoadOptionsFunctions | IHookFunctions | IWebhookFunctions): Promise<any>;
5
- export declare function strapiApiRequestAllItems(this: IHookFunctions | ILoadOptionsFunctions | IExecuteFunctions, method: string, resource: string, body?: IDataObject, query?: IDataObject, headers?: IDataObject): Promise<IDataObject[]>;
4
+ export declare function getToken(this: IExecuteFunctions | ILoadOptionsFunctions | IHookFunctions | IWebhookFunctions): Promise<{
5
+ jwt: string;
6
+ }>;
7
+ export declare function strapiApiRequestAllItems(this: IHookFunctions | ILoadOptionsFunctions | IExecuteFunctions, method: string, resource: string, body?: IDataObject, query?: IDataObject, headers?: IDataObject, apiVersion?: string): Promise<IDataObject[]>;
6
8
  export declare function validateJSON(json: string | undefined): any;
@@ -10,8 +10,14 @@ const removeTrailingSlash = (url) => {
10
10
  };
11
11
  exports.removeTrailingSlash = removeTrailingSlash;
12
12
  async function strapiApiRequest(method, resource, body = {}, qs = {}, uri, headers = {}) {
13
- var _a;
14
- const credentials = await this.getCredentials('strapiApi');
13
+ const authenticationMethod = this.getNodeParameter('authentication', 0);
14
+ let credentials;
15
+ if (authenticationMethod === 'password') {
16
+ credentials = await this.getCredentials('strapiApi');
17
+ }
18
+ else {
19
+ credentials = await this.getCredentials('strapiTokenApi');
20
+ }
15
21
  const url = (0, exports.removeTrailingSlash)(credentials.url);
16
22
  try {
17
23
  const options = {
@@ -31,7 +37,7 @@ async function strapiApiRequest(method, resource, body = {}, qs = {}, uri, heade
31
37
  if (Object.keys(body).length === 0) {
32
38
  delete options.body;
33
39
  }
34
- return await ((_a = this.helpers) === null || _a === void 0 ? void 0 : _a.request(options));
40
+ return await this.helpers.requestWithAuthentication.call(this, authenticationMethod === 'password' ? 'strapiApi' : 'strapiTokenApi', options);
35
41
  }
36
42
  catch (error) {
37
43
  throw new n8n_workflow_1.NodeApiError(this.getNode(), error);
@@ -57,9 +63,8 @@ async function getToken() {
57
63
  return this.helpers.request(options);
58
64
  }
59
65
  exports.getToken = getToken;
60
- async function strapiApiRequestAllItems(method, resource, body = {}, query = {}, headers = {}) {
66
+ async function strapiApiRequestAllItems(method, resource, body = {}, query = {}, headers = {}, apiVersion = 'v3') {
61
67
  const returnData = [];
62
- const { apiVersion } = await this.getCredentials('strapiApi');
63
68
  let responseData;
64
69
  if (apiVersion === 'v4') {
65
70
  query['pagination[pageSize]'] = 20;
@@ -1 +1 @@
1
- {"version":3,"file":"GenericFunctions.js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GAAG,SAAS,CAAC;KACnB;IACD,OAAO,MAAM,CAAC;AACf,CAAC;AARD,oCAQC"}
@@ -24,9 +24,39 @@ class Strapi {
24
24
  name: 'strapiApi',
25
25
  required: true,
26
26
  testedBy: 'strapiApiTest',
27
+ displayOptions: {
28
+ show: {
29
+ authentication: ['password'],
30
+ },
31
+ },
32
+ },
33
+ {
34
+ name: 'strapiTokenApi',
35
+ required: true,
36
+ displayOptions: {
37
+ show: {
38
+ authentication: ['token'],
39
+ },
40
+ },
27
41
  },
28
42
  ],
29
43
  properties: [
44
+ {
45
+ displayName: 'Authentication',
46
+ name: 'authentication',
47
+ type: 'options',
48
+ options: [
49
+ {
50
+ name: 'Username & Password',
51
+ value: 'password',
52
+ },
53
+ {
54
+ name: 'API Token',
55
+ value: 'token',
56
+ },
57
+ ],
58
+ default: 'password',
59
+ },
30
60
  {
31
61
  displayName: 'Resource',
32
62
  name: 'resource',
@@ -88,9 +118,16 @@ class Strapi {
88
118
  let responseData;
89
119
  const resource = this.getNodeParameter('resource', 0);
90
120
  const operation = this.getNodeParameter('operation', 0);
91
- const { apiVersion } = await this.getCredentials('strapiApi');
92
- const { jwt } = await GenericFunctions_1.getToken.call(this);
93
- headers.Authorization = `Bearer ${jwt}`;
121
+ const authenticationMethod = this.getNodeParameter('authentication', 0);
122
+ let apiVersion;
123
+ if (authenticationMethod === 'password') {
124
+ const { jwt } = await GenericFunctions_1.getToken.call(this);
125
+ apiVersion = (await this.getCredentials('strapiApi')).apiVersion;
126
+ headers.Authorization = `Bearer ${jwt}`;
127
+ }
128
+ else {
129
+ apiVersion = (await this.getCredentials('strapiTokenApi')).apiVersion;
130
+ }
94
131
  for (let i = 0; i < length; i++) {
95
132
  try {
96
133
  if (resource === 'entry') {
@@ -141,7 +178,7 @@ class Strapi {
141
178
  qs.publicationState = options.publicationState;
142
179
  }
143
180
  if (returnAll) {
144
- responseData = await GenericFunctions_1.strapiApiRequestAllItems.call(this, 'GET', `/${contentType}`, {}, qs, headers);
181
+ responseData = await GenericFunctions_1.strapiApiRequestAllItems.call(this, 'GET', `/${contentType}`, {}, qs, headers, apiVersion);
145
182
  }
146
183
  else {
147
184
  qs['pagination[pageSize]'] = this.getNodeParameter('limit', i);
@@ -168,7 +205,7 @@ class Strapi {
168
205
  qs._publicationState = options.publicationState;
169
206
  }
170
207
  if (returnAll) {
171
- responseData = await GenericFunctions_1.strapiApiRequestAllItems.call(this, 'GET', `/${contentType}`, {}, qs, headers);
208
+ responseData = await GenericFunctions_1.strapiApiRequestAllItems.call(this, 'GET', `/${contentType}`, {}, qs, headers, apiVersion);
172
209
  }
173
210
  else {
174
211
  qs._limit = this.getNodeParameter('limit', i);
@@ -1 +1 @@
1
- {"version":3,"file":"Strapi.node.js","sourceRoot":"","sources":["../../../nodes/Strapi/Strapi.node.ts"],"names":[],"mappings":";;;AAYA,+CAAkD;AAElD,yDAM4B;AAE5B,yDAAkE;AAElE,MAAa,MAAM;IAAnB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,QAAQ;YACrB,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,iBAAiB;YACvB,KAAK,EAAE,CAAC,OAAO,CAAC;YAChB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8DAA8D;YACxE,WAAW,EAAE,oBAAoB;YACjC,QAAQ,EAAE;gBACT,IAAI,EAAE,QAAQ;aACd;YACD,MAAM,EAAE,CAAC,MAAM,CAAC;YAChB,OAAO,EAAE,CAAC,MAAM,CAAC;YACjB,WAAW,EAAE;gBACZ;oBACC,IAAI,EAAE,WAAW;oBACjB,QAAQ,EAAE,IAAI;oBACd,QAAQ,EAAE,eAAe;iBACzB;aACD;YACD,UAAU,EAAE;gBACX;oBACC,WAAW,EAAE,UAAU;oBACvB,IAAI,EAAE,UAAU;oBAChB,gBAAgB,EAAE,IAAI;oBACtB,IAAI,EAAE,SAAS;oBACf,OAAO,EAAE;wBACR;4BACC,IAAI,EAAE,OAAO;4BACb,KAAK,EAAE,OAAO;yBAC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Z;SACD;QACD,OAAO,IAAI,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;IAC3C,CAAC;CACD;AA7XD,wBA6XC"}
@@ -286,6 +286,7 @@
286
286
  {"name":"storyblokContentApi","displayName":"Storyblok Content API","documentationUrl":"storyblok","properties":[{"displayName":"API Key","name":"apiKey","type":"string","typeOptions":{"password":true},"default":""}]},
287
287
  {"name":"storyblokManagementApi","displayName":"Storyblok Management API","documentationUrl":"storyblok","properties":[{"displayName":"Personal Access Token","name":"accessToken","type":"string","typeOptions":{"password":true},"default":""}]},
288
288
  {"name":"strapiApi","displayName":"Strapi API","documentationUrl":"strapi","properties":[{"displayName":"Make sure you are using a user account not an admin account","name":"notice","type":"notice","default":""},{"displayName":"Email","name":"email","type":"string","placeholder":"name@email.com","default":""},{"displayName":"Password","name":"password","type":"string","typeOptions":{"password":true},"default":""},{"displayName":"URL","name":"url","type":"string","default":"","placeholder":"https://api.example.com"},{"displayName":"API Version","name":"apiVersion","default":"v3","type":"options","description":"The version of api to be used","options":[{"name":"Version 4","value":"v4","description":"API version supported by Strapi 4"},{"name":"Version 3","value":"v3","description":"API version supported by Strapi 3"}]}]},
289
+ {"name":"strapiTokenApi","displayName":"Strapi API Token","documentationUrl":"strapi","properties":[{"displayName":"API Token","name":"apiToken","type":"string","typeOptions":{"password":true},"default":""},{"displayName":"URL","name":"url","type":"string","default":"","placeholder":"https://api.example.com"},{"displayName":"API Version","name":"apiVersion","default":"v3","type":"options","description":"The version of api to be used","options":[{"name":"Version 4","value":"v4","description":"API version supported by Strapi 4"},{"name":"Version 3","value":"v3","description":"API version supported by Strapi 3"}]}],"authenticate":{"type":"generic","properties":{"headers":{"Authorization":"=Bearer {{$credentials.apiToken}}"}}},"test":{"request":{"baseURL":"={{$credentials.url}}","url":"={{$credentials.apiVersion === \"v3\" ? \"/users/count\" : \"/api/users/count\"}}","ignoreHttpStatusErrors":true},"rules":[{"type":"responseSuccessBody","properties":{"key":"error.name","value":"UnauthorizedError","message":"Invalid API token"}}]}},
289
290
  {"name":"stravaOAuth2Api","extends":["oAuth2Api"],"displayName":"Strava OAuth2 API","documentationUrl":"strava","properties":[{"displayName":"Grant Type","name":"grantType","type":"hidden","default":"authorizationCode"},{"displayName":"Authorization URL","name":"authUrl","type":"hidden","default":"https://www.strava.com/oauth/authorize","required":true},{"displayName":"Access Token URL","name":"accessTokenUrl","type":"hidden","default":"https://www.strava.com/oauth/token","required":true},{"displayName":"Scope","name":"scope","type":"hidden","default":"activity:read_all,activity:write","required":true},{"displayName":"Auth URI Query Parameters","name":"authQueryParameters","type":"hidden","default":""},{"displayName":"Authentication","name":"authentication","type":"hidden","default":"body"}]},
290
291
  {"name":"stripeApi","displayName":"Stripe API","documentationUrl":"stripe","properties":[{"displayName":"Secret Key","name":"secretKey","type":"string","typeOptions":{"password":true},"default":""}],"authenticate":{"type":"generic","properties":{"headers":{"Authorization":"=Bearer {{$credentials.secretKey}}"}}},"test":{"request":{"baseURL":"https://api.stripe.com/v1","url":"/charges","json":true}}},
291
292
  {"name":"supabaseApi","displayName":"Supabase API","documentationUrl":"supabase","properties":[{"displayName":"Host","name":"host","type":"string","placeholder":"https://your_account.supabase.co","default":""},{"displayName":"Service Role Secret","name":"serviceRole","type":"string","default":""}],"authenticate":{"type":"generic","properties":{"headers":{"apikey":"={{$credentials.serviceRole}}","Authorization":"=Bearer {{$credentials.serviceRole}}"}}},"test":{"request":{"baseURL":"={{$credentials.host}}/rest/v1","headers":{"Prefer":"return=representation"},"url":"/"}}},
@@ -368,7 +368,7 @@
368
368
  {"displayName":"Start","name":"n8n-nodes-base.start","icon":"fa:play","group":["input"],"version":1,"description":"Starts the workflow execution from this node","maxNodes":1,"hidden":true,"defaults":{"name":"Start","color":"#00e000"},"inputs":[],"outputs":["main"],"properties":[{"displayName":"This node is where a manual workflow execution starts. To make one, go back to the canvas and click ‘execute workflow’","name":"notice","type":"notice","default":""}],"codex":{"categories":["Core Nodes"],"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.start/"}]}}},
369
369
  {"displayName":"Stop and Error","name":"n8n-nodes-base.stopAndError","icon":"fa:exclamation-triangle","group":["input"],"version":1,"description":"Throw an error in the workflow","defaults":{"name":"Stop and Error","color":"#ff0000"},"inputs":["main"],"outputs":[],"properties":[{"displayName":"Error Type","name":"errorType","type":"options","options":[{"name":"Error Message","value":"errorMessage"},{"name":"Error Object","value":"errorObject"}],"default":"errorMessage","description":"Type of error to throw"},{"displayName":"Error Message","name":"errorMessage","type":"string","placeholder":"An error occurred!","default":"","required":true,"displayOptions":{"show":{"errorType":["errorMessage"]}}},{"displayName":"Error Object","name":"errorObject","type":"json","description":"Object containing error properties","default":"","typeOptions":{"alwaysOpenEditWindow":true},"placeholder":"{\n\t\"code\": \"404\",\n\t\"description\": \"The resource could not be fetched\"\n}","required":true,"displayOptions":{"show":{"errorType":["errorObject"]}}}],"codex":{"categories":["Core Nodes","Utility"],"subcategories":{"Core Nodes":["Helpers"]},"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.stopanderror/"}]},"alias":["Throw error","Error","Exception"]}},
370
370
  {"displayName":"Storyblok","name":"n8n-nodes-base.storyblok","group":["output"],"version":1,"subtitle":"={{$parameter[\"operation\"] + \": \" + $parameter[\"resource\"]}}","description":"Consume Storyblok API","defaults":{"name":"Storyblok"},"inputs":["main"],"outputs":["main"],"credentials":[{"name":"storyblokContentApi","required":true,"displayOptions":{"show":{"source":["contentApi"]}}},{"name":"storyblokManagementApi","required":true,"displayOptions":{"show":{"source":["managementApi"]}}}],"properties":[{"displayName":"Source","name":"source","type":"options","default":"contentApi","description":"Pick where your data comes from, Content or Management API","options":[{"name":"Content API","value":"contentApi"},{"name":"Management API","value":"managementApi"}]},{"displayName":"Resource","name":"resource","type":"options","noDataExpression":true,"options":[{"name":"Story","value":"story"}],"default":"story","displayOptions":{"show":{"source":["contentApi"]}}},{"displayName":"Resource","name":"resource","type":"options","noDataExpression":true,"options":[{"name":"Story","value":"story"}],"default":"story","displayOptions":{"show":{"source":["managementApi"]}}},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"source":["contentApi"],"resource":["story"]}},"options":[{"name":"Get","value":"get","description":"Get a story","action":"Get a story"},{"name":"Get Many","value":"getAll","description":"Get many stories","action":"Get many stories"}],"default":"get"},{"displayName":"Identifier","name":"identifier","type":"string","default":"","required":true,"displayOptions":{"show":{"source":["contentApi"],"resource":["story"],"operation":["get"]}},"description":"The ID or slug of the story to get"},{"displayName":"Return All","name":"returnAll","type":"boolean","displayOptions":{"show":{"source":["contentApi"],"resource":["story"],"operation":["getAll"]}},"default":false,"description":"Whether to return all results or only up to a given limit"},{"displayName":"Limit","name":"limit","type":"number","displayOptions":{"show":{"source":["contentApi"],"resource":["story"],"operation":["getAll"],"returnAll":[false]}},"typeOptions":{"minValue":1,"maxValue":100},"default":50,"description":"Max number of results to return"},{"displayName":"Filters","name":"filters","type":"collection","placeholder":"Add Filter","default":{},"displayOptions":{"show":{"source":["contentApi"],"resource":["story"],"operation":["getAll"]}},"options":[{"displayName":"Starts With","name":"starts_with","type":"string","default":"","description":"Filter by slug"}]},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"source":["managementApi"],"resource":["story"]}},"options":[{"name":"Delete","value":"delete","description":"Delete a story","action":"Delete a story"},{"name":"Get","value":"get","description":"Get a story","action":"Get a story"},{"name":"Get Many","value":"getAll","description":"Get many stories","action":"Get many stories"},{"name":"Publish","value":"publish","description":"Publish a story","action":"Publish a story"},{"name":"Unpublish","value":"unpublish","description":"Unpublish a story","action":"Unpublish a story"}],"default":"get"},{"displayName":"Space Name or ID","name":"space","type":"options","typeOptions":{"loadOptionsMethod":"getSpaces"},"default":"","required":true,"displayOptions":{"show":{"source":["managementApi"],"resource":["story"],"operation":["delete"]}},"description":"The name of the space. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Story ID","name":"storyId","type":"string","default":"","required":true,"displayOptions":{"show":{"source":["managementApi"],"resource":["story"],"operation":["delete"]}},"description":"Numeric ID of the story"},{"displayName":"Space Name or ID","name":"space","type":"options","typeOptions":{"loadOptionsMethod":"getSpaces"},"default":"","required":true,"displayOptions":{"show":{"source":["managementApi"],"resource":["story"],"operation":["get"]}},"description":"The name of the space. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Story ID","name":"storyId","type":"string","default":"","required":true,"displayOptions":{"show":{"source":["managementApi"],"resource":["story"],"operation":["get"]}},"description":"Numeric ID of the story"},{"displayName":"Space Name or ID","name":"space","type":"options","typeOptions":{"loadOptionsMethod":"getSpaces"},"default":"","required":true,"displayOptions":{"show":{"source":["managementApi"],"resource":["story"],"operation":["getAll"]}},"description":"The name of the space. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Return All","name":"returnAll","type":"boolean","displayOptions":{"show":{"source":["managementApi"],"resource":["story"],"operation":["getAll"]}},"default":false,"description":"Whether to return all results or only up to a given limit"},{"displayName":"Limit","name":"limit","type":"number","displayOptions":{"show":{"source":["managementApi"],"resource":["story"],"operation":["getAll"],"returnAll":[false]}},"typeOptions":{"minValue":1,"maxValue":100},"default":50,"description":"Max number of results to return"},{"displayName":"Filters","name":"filters","type":"collection","placeholder":"Add Filter","default":{},"displayOptions":{"show":{"source":["managementApi"],"resource":["story"],"operation":["getAll"]}},"options":[{"displayName":"Starts With","name":"starts_with","type":"string","default":"","description":"Filter by slug"}]},{"displayName":"Space Name or ID","name":"space","type":"options","typeOptions":{"loadOptionsMethod":"getSpaces"},"default":"","required":true,"displayOptions":{"show":{"source":["managementApi"],"resource":["story"],"operation":["publish"]}},"description":"The name of the space. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Story ID","name":"storyId","type":"string","default":"","required":true,"displayOptions":{"show":{"source":["managementApi"],"resource":["story"],"operation":["publish"]}},"description":"Numeric ID of the story"},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","displayOptions":{"show":{"source":["managementApi"],"resource":["story"],"operation":["publish"]}},"default":{},"options":[{"displayName":"Release ID","name":"releaseId","type":"string","default":"","description":"Numeric ID of release"},{"displayName":"Language","name":"language","type":"string","default":"","description":"Language code to publish the story individually (must be enabled in the space settings)"}]},{"displayName":"Space Name or ID","name":"space","type":"options","typeOptions":{"loadOptionsMethod":"getSpaces"},"default":"","required":true,"displayOptions":{"show":{"source":["managementApi"],"resource":["story"],"operation":["unpublish"]}},"description":"The name of the space. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Story ID","name":"storyId","type":"string","default":"","required":true,"displayOptions":{"show":{"source":["managementApi"],"resource":["story"],"operation":["unpublish"]}},"description":"Numeric ID of the story"}],"codex":{"categories":["Data & Storage","Marketing & Content"],"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.storyblok/"}],"credentialDocumentation":[{"url":"https://docs.n8n.io/credentials/storyblok"}]}},"iconUrl":"icons/n8n-nodes-base/dist/nodes/Storyblok/storyblok.svg"},
371
- {"displayName":"Strapi","name":"n8n-nodes-base.strapi","group":["input"],"version":1,"subtitle":"={{$parameter[\"operation\"] + \": \" + $parameter[\"resource\"]}}","description":"Consume Strapi API","defaults":{"name":"Strapi"},"inputs":["main"],"outputs":["main"],"credentials":[{"name":"strapiApi","required":true,"testedBy":"strapiApiTest"}],"properties":[{"displayName":"Resource","name":"resource","noDataExpression":true,"type":"options","options":[{"name":"Entry","value":"entry"}],"default":"entry"},{"displayName":"Operation","name":"operation","noDataExpression":true,"type":"options","displayOptions":{"show":{"resource":["entry"]}},"options":[{"name":"Create","value":"create","description":"Create an entry","action":"Create an entry"},{"name":"Delete","value":"delete","description":"Delete an entry","action":"Delete an entry"},{"name":"Get","value":"get","description":"Get an entry","action":"Get an entry"},{"name":"Get Many","value":"getAll","description":"Get many entries","action":"Get many entries"},{"name":"Update","value":"update","description":"Update an entry","action":"Update an entry"}],"default":"get"},{"displayName":"Content Type","name":"contentType","type":"string","default":"","required":true,"displayOptions":{"show":{"resource":["entry"],"operation":["create"]}},"description":"Name of the content type"},{"displayName":"Columns","name":"columns","type":"string","displayOptions":{"show":{"resource":["entry"],"operation":["create"]}},"default":"","placeholder":"id,name,description","description":"Comma-separated list of the properties which should used as columns for the new rows"},{"displayName":"Content Type","name":"contentType","type":"string","default":"","required":true,"displayOptions":{"show":{"resource":["entry"],"operation":["delete"]}},"description":"Name of the content type"},{"displayName":"Entry ID","name":"entryId","type":"string","default":"","required":true,"displayOptions":{"show":{"resource":["entry"],"operation":["delete"]}},"description":"The ID of the entry to delete"},{"displayName":"Content Type","name":"contentType","type":"string","default":"","required":true,"displayOptions":{"show":{"resource":["entry"],"operation":["get"]}},"description":"Name of the content type"},{"displayName":"Entry ID","name":"entryId","type":"string","default":"","required":true,"displayOptions":{"show":{"resource":["entry"],"operation":["get"]}},"description":"The ID of the entry to get"},{"displayName":"Content Type","name":"contentType","type":"string","default":"","required":true,"displayOptions":{"show":{"resource":["entry"],"operation":["getAll"]}},"description":"Name of the content type"},{"displayName":"Return All","name":"returnAll","type":"boolean","displayOptions":{"show":{"resource":["entry"],"operation":["getAll"]}},"default":false,"description":"Whether to return all results or only up to a given limit"},{"displayName":"Limit","name":"limit","type":"number","displayOptions":{"show":{"resource":["entry"],"operation":["getAll"],"returnAll":[false]}},"typeOptions":{"minValue":1,"maxValue":100},"default":50,"description":"Max number of results to return"},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["entry"],"operation":["getAll"]}},"options":[{"displayName":"Publication State","name":"publicationState","type":"options","options":[{"name":"Live","value":"live"},{"name":"Preview","value":"preview"}],"default":"","description":"Only select entries matching the publication state provided"},{"displayName":"Sort Fields","name":"sort","type":"string","typeOptions":{"multipleValues":true,"multipleValueButtonText":"Add Sort Field"},"default":"","placeholder":"name:asc","description":"Name of the fields to sort the data by. By default will be sorted ascendingly. To modify that behavior, you have to add the sort direction after the name of sort field preceded by a colon. For example: <code>name:asc</code>."},{"displayName":"Where (JSON)","name":"where","type":"string","default":"","description":"JSON query to filter the data. <a href=\"https://strapi.io/documentation/developer-docs/latest/developer-resources/content-api/content-api.html#filters\">More info</a>."}]},{"displayName":"Content Type","name":"contentType","type":"string","default":"","required":true,"displayOptions":{"show":{"resource":["entry"],"operation":["update"]}},"description":"Name of the content type"},{"displayName":"Update Key","name":"updateKey","type":"string","displayOptions":{"show":{"resource":["entry"],"operation":["update"]}},"default":"id","required":true,"description":"Name of the property which decides which rows in the database should be updated. Normally that would be \"id\"."},{"displayName":"Columns","name":"columns","type":"string","displayOptions":{"show":{"resource":["entry"],"operation":["update"]}},"default":"","placeholder":"id,name,description","description":"Comma-separated list of the properties which should used as columns for the new rows"}],"codex":{"categories":["Data & Storage","Marketing & Content"],"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.strapi/"}],"credentialDocumentation":[{"url":"https://docs.n8n.io/credentials/strapi"}]}},"iconUrl":"icons/n8n-nodes-base/dist/nodes/Strapi/strapi.svg"},
371
+ {"displayName":"Strapi","name":"n8n-nodes-base.strapi","group":["input"],"version":1,"subtitle":"={{$parameter[\"operation\"] + \": \" + $parameter[\"resource\"]}}","description":"Consume Strapi API","defaults":{"name":"Strapi"},"inputs":["main"],"outputs":["main"],"credentials":[{"name":"strapiApi","required":true,"testedBy":"strapiApiTest","displayOptions":{"show":{"authentication":["password"]}}},{"name":"strapiTokenApi","required":true,"displayOptions":{"show":{"authentication":["token"]}}}],"properties":[{"displayName":"Authentication","name":"authentication","type":"options","options":[{"name":"Username & Password","value":"password"},{"name":"API Token","value":"token"}],"default":"password"},{"displayName":"Resource","name":"resource","noDataExpression":true,"type":"options","options":[{"name":"Entry","value":"entry"}],"default":"entry"},{"displayName":"Operation","name":"operation","noDataExpression":true,"type":"options","displayOptions":{"show":{"resource":["entry"]}},"options":[{"name":"Create","value":"create","description":"Create an entry","action":"Create an entry"},{"name":"Delete","value":"delete","description":"Delete an entry","action":"Delete an entry"},{"name":"Get","value":"get","description":"Get an entry","action":"Get an entry"},{"name":"Get Many","value":"getAll","description":"Get many entries","action":"Get many entries"},{"name":"Update","value":"update","description":"Update an entry","action":"Update an entry"}],"default":"get"},{"displayName":"Content Type","name":"contentType","type":"string","default":"","required":true,"displayOptions":{"show":{"resource":["entry"],"operation":["create"]}},"description":"Name of the content type"},{"displayName":"Columns","name":"columns","type":"string","displayOptions":{"show":{"resource":["entry"],"operation":["create"]}},"default":"","placeholder":"id,name,description","description":"Comma-separated list of the properties which should used as columns for the new rows"},{"displayName":"Content Type","name":"contentType","type":"string","default":"","required":true,"displayOptions":{"show":{"resource":["entry"],"operation":["delete"]}},"description":"Name of the content type"},{"displayName":"Entry ID","name":"entryId","type":"string","default":"","required":true,"displayOptions":{"show":{"resource":["entry"],"operation":["delete"]}},"description":"The ID of the entry to delete"},{"displayName":"Content Type","name":"contentType","type":"string","default":"","required":true,"displayOptions":{"show":{"resource":["entry"],"operation":["get"]}},"description":"Name of the content type"},{"displayName":"Entry ID","name":"entryId","type":"string","default":"","required":true,"displayOptions":{"show":{"resource":["entry"],"operation":["get"]}},"description":"The ID of the entry to get"},{"displayName":"Content Type","name":"contentType","type":"string","default":"","required":true,"displayOptions":{"show":{"resource":["entry"],"operation":["getAll"]}},"description":"Name of the content type"},{"displayName":"Return All","name":"returnAll","type":"boolean","displayOptions":{"show":{"resource":["entry"],"operation":["getAll"]}},"default":false,"description":"Whether to return all results or only up to a given limit"},{"displayName":"Limit","name":"limit","type":"number","displayOptions":{"show":{"resource":["entry"],"operation":["getAll"],"returnAll":[false]}},"typeOptions":{"minValue":1,"maxValue":100},"default":50,"description":"Max number of results to return"},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["entry"],"operation":["getAll"]}},"options":[{"displayName":"Publication State","name":"publicationState","type":"options","options":[{"name":"Live","value":"live"},{"name":"Preview","value":"preview"}],"default":"","description":"Only select entries matching the publication state provided"},{"displayName":"Sort Fields","name":"sort","type":"string","typeOptions":{"multipleValues":true,"multipleValueButtonText":"Add Sort Field"},"default":"","placeholder":"name:asc","description":"Name of the fields to sort the data by. By default will be sorted ascendingly. To modify that behavior, you have to add the sort direction after the name of sort field preceded by a colon. For example: <code>name:asc</code>."},{"displayName":"Where (JSON)","name":"where","type":"string","default":"","description":"JSON query to filter the data. <a href=\"https://strapi.io/documentation/developer-docs/latest/developer-resources/content-api/content-api.html#filters\">More info</a>."}]},{"displayName":"Content Type","name":"contentType","type":"string","default":"","required":true,"displayOptions":{"show":{"resource":["entry"],"operation":["update"]}},"description":"Name of the content type"},{"displayName":"Update Key","name":"updateKey","type":"string","displayOptions":{"show":{"resource":["entry"],"operation":["update"]}},"default":"id","required":true,"description":"Name of the property which decides which rows in the database should be updated. Normally that would be \"id\"."},{"displayName":"Columns","name":"columns","type":"string","displayOptions":{"show":{"resource":["entry"],"operation":["update"]}},"default":"","placeholder":"id,name,description","description":"Comma-separated list of the properties which should used as columns for the new rows"}],"codex":{"categories":["Data & Storage","Marketing & Content"],"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.strapi/"}],"credentialDocumentation":[{"url":"https://docs.n8n.io/credentials/strapi"}]}},"iconUrl":"icons/n8n-nodes-base/dist/nodes/Strapi/strapi.svg"},
372
372
  {"displayName":"Strava","name":"n8n-nodes-base.strava","group":["input"],"version":1,"subtitle":"={{$parameter[\"operation\"] + \": \" + $parameter[\"resource\"]}}","description":"Consume Strava API","defaults":{"name":"Strava"},"inputs":["main"],"outputs":["main"],"credentials":[{"name":"stravaOAuth2Api","required":true}],"properties":[{"displayName":"Resource","name":"resource","type":"options","noDataExpression":true,"options":[{"name":"Activity","value":"activity"}],"default":"activity"},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["activity"]}},"options":[{"name":"Create","value":"create","description":"Create a new activity","action":"Create an activity"},{"name":"Get","value":"get","description":"Get an activity","action":"Get an activity"},{"name":"Get Comments","value":"getComments","description":"Get all activity comments","action":"Get all activity comments"},{"name":"Get Kudos","value":"getKudos","description":"Get all activity kudos","action":"Get all activity kudos"},{"name":"Get Laps","value":"getLaps","description":"Get all activity laps","action":"Get all activity laps"},{"name":"Get Many","value":"getAll","description":"Get many activities","action":"Get many activities"},{"name":"Get Streams","value":"getStreams","description":"Get activity streams","action":"Get all activity streams"},{"name":"Get Zones","value":"getZones","description":"Get all activity zones","action":"Get all activity zones"},{"name":"Update","value":"update","description":"Update an activity","action":"Update an activity"}],"default":"create"},{"displayName":"Name","name":"name","type":"string","required":true,"displayOptions":{"show":{"resource":["activity"],"operation":["create"]}},"default":"","description":"The name of the activity"},{"displayName":"Type","name":"type","type":"string","required":true,"displayOptions":{"show":{"resource":["activity"],"operation":["create"]}},"default":"","description":"Type of activity. For example - Run, Ride etc."},{"displayName":"Start Date","name":"startDate","type":"dateTime","default":"","required":true,"displayOptions":{"show":{"resource":["activity"],"operation":["create"]}},"description":"ISO 8601 formatted date time"},{"displayName":"Elapsed Time (Seconds)","name":"elapsedTime","type":"number","required":true,"displayOptions":{"show":{"resource":["activity"],"operation":["create"]}},"typeOptions":{"minValue":0},"default":0,"description":"In seconds"},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["activity"],"operation":["create"]}},"options":[{"displayName":"Commute","name":"commute","type":"boolean","default":false,"description":"Whether to mark as commute"},{"displayName":"Description","name":"description","type":"string","default":"","description":"Description of the activity"},{"displayName":"Distance","name":"distance","type":"number","typeOptions":{"minValue":0},"default":0,"description":"In meters"},{"displayName":"Trainer","name":"trainer","type":"boolean","default":false,"description":"Whether to mark as a trainer activity"}]},{"displayName":"Activity ID","name":"activityId","type":"string","required":true,"displayOptions":{"show":{"resource":["activity"],"operation":["update"]}},"default":"","description":"ID or email of activity"},{"displayName":"Update Fields","name":"updateFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["activity"],"operation":["update"]}},"options":[{"displayName":"Commute","name":"commute","type":"boolean","default":false,"description":"Whether to mark as commute"},{"displayName":"Description","name":"description","type":"string","default":"","description":"Description of the activity"},{"displayName":"Gear ID","name":"gear_id","type":"string","default":"","description":"Identifier for the gear associated with the activity. ‘none’ clears gear from activity."},{"displayName":"Mute Activity","name":"hide_from_home","type":"boolean","default":false,"description":"Do not publish to Home or Club feeds"},{"displayName":"Name","name":"name","type":"string","default":"","description":"The name of the activity"},{"displayName":"Type","name":"type","type":"string","default":"","description":"Type of activity. For example - Run, Ride etc."},{"displayName":"Trainer","name":"trainer","type":"boolean","default":false,"description":"Whether to mark as a trainer activity"}]},{"displayName":"Activity ID","name":"activityId","type":"string","required":true,"displayOptions":{"show":{"resource":["activity"],"operation":["get"]}},"default":"","description":"ID or email of activity"},{"displayName":"Activity ID","name":"activityId","type":"string","required":true,"displayOptions":{"show":{"resource":["activity"],"operation":["getComments","getLaps","getKudos","getZones","getStreams"]}},"default":"","description":"ID or email of activity"},{"displayName":"Return All","name":"returnAll","type":"boolean","displayOptions":{"show":{"resource":["activity"],"operation":["getComments","getLaps","getKudos","getZones"]}},"default":false,"description":"Whether to return all results or only up to a given limit"},{"displayName":"Limit","name":"limit","type":"number","displayOptions":{"show":{"resource":["activity"],"operation":["getComments","getLaps","getKudos","getZones"],"returnAll":[false]}},"typeOptions":{"minValue":1,"maxValue":100},"default":50,"description":"Max number of results to return"},{"displayName":"Keys","name":"keys","type":"multiOptions","options":[{"name":"Altitude","value":"altitude"},{"name":"Cadence","value":"cadence"},{"name":"Distance","value":"distance"},{"name":"Gradient","value":"grade_smooth"},{"name":"Heartrate","value":"heartrate"},{"name":"Latitude / Longitude","value":"latlng"},{"name":"Moving","value":"moving"},{"name":"Temperature","value":"temp"},{"name":"Time","value":"time"},{"name":"Velocity","value":"velocity_smooth"},{"name":"Watts","value":"watts"}],"displayOptions":{"show":{"resource":["activity"],"operation":["getStreams"]}},"required":true,"default":[],"description":"Desired stream types to return"},{"displayName":"Return All","name":"returnAll","type":"boolean","displayOptions":{"show":{"resource":["activity"],"operation":["getAll"]}},"default":false,"description":"Whether to return all results or only up to a given limit"},{"displayName":"Limit","name":"limit","type":"number","displayOptions":{"show":{"resource":["activity"],"operation":["getAll"],"returnAll":[false]}},"typeOptions":{"minValue":1,"maxValue":100},"default":50,"description":"Max number of results to return"}],"codex":{"categories":["Productivity"],"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.strava/"}],"credentialDocumentation":[{"url":"https://docs.n8n.io/credentials/strava"}]}},"iconUrl":"icons/n8n-nodes-base/dist/nodes/Strava/strava.svg"},
373
373
  {"displayName":"Strava Trigger","name":"n8n-nodes-base.stravaTrigger","group":["trigger"],"version":1,"description":"Starts the workflow when Strava events occur","defaults":{"name":"Strava Trigger"},"inputs":[],"outputs":["main"],"credentials":[{"name":"stravaOAuth2Api","required":true}],"webhooks":[{"name":"setup","httpMethod":"GET","responseMode":"onReceived","path":"webhook"},{"name":"default","httpMethod":"POST","responseMode":"onReceived","path":"webhook"}],"properties":[{"displayName":"Object","name":"object","type":"options","options":[{"name":"[All]","value":"*"},{"name":"Activity","value":"activity"},{"name":"Athlete","value":"athlete"}],"default":"*"},{"displayName":"Event","name":"event","type":"options","options":[{"name":"[All]","value":"*"},{"name":"Created","value":"create"},{"name":"Deleted","value":"delete"},{"name":"Updated","value":"update"}],"default":"*"},{"displayName":"Resolve Data","name":"resolveData","type":"boolean","default":true,"description":"By default the webhook-data only contain the Object ID. If this option gets activated, it will resolve the data automatically."},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Delete If Exist","name":"deleteIfExist","type":"boolean","default":false,"description":"Strava allows just one subscription at all times. If you want to delete the current subscription to make room for a new subcription with the current parameters, set this parameter to true. Keep in mind this is a destructive operation."}]}],"codex":{"categories":["Productivity"],"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/trigger-nodes/n8n-nodes-base.stravatrigger/"}],"credentialDocumentation":[{"url":"https://docs.n8n.io/credentials/strava"}]}},"iconUrl":"icons/n8n-nodes-base/dist/nodes/Strava/strava.svg"},
374
374
  {"displayName":"Stripe","name":"n8n-nodes-base.stripe","group":["transform"],"version":1,"subtitle":"={{$parameter[\"operation\"] + \": \" + $parameter[\"resource\"]}}","description":"Consume the Stripe API","defaults":{"name":"Stripe"},"inputs":["main"],"outputs":["main"],"credentials":[{"name":"stripeApi","required":true}],"properties":[{"displayName":"Resource","name":"resource","type":"options","noDataExpression":true,"options":[{"name":"Balance","value":"balance"},{"name":"Charge","value":"charge"},{"name":"Coupon","value":"coupon"},{"name":"Customer","value":"customer"},{"name":"Customer Card","value":"customerCard"},{"name":"Source","value":"source"},{"name":"Token","value":"token"}],"default":"balance"},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"default":"get","options":[{"name":"Get","value":"get","description":"Get a balance","action":"Get a balance"}],"displayOptions":{"show":{"resource":["balance"]}}},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"default":"get","options":[{"name":"Add","value":"add","description":"Add a customer card","action":"Add a customer card"},{"name":"Get","value":"get","description":"Get a customer card","action":"Get a customer card"},{"name":"Remove","value":"remove","description":"Remove a customer card","action":"Remove a customer card"}],"displayOptions":{"show":{"resource":["customerCard"]}}},{"displayName":"Customer ID","name":"customerId","type":"string","required":true,"default":"","description":"ID of the customer to be associated with this card","displayOptions":{"show":{"resource":["customerCard"],"operation":["add"]}}},{"displayName":"Card Token","name":"token","type":"string","typeOptions":{"password":true},"required":true,"default":"","placeholder":"tok_1IMfKdJhRTnqS5TKQVG1LI9o","description":"Token representing sensitive card information","displayOptions":{"show":{"resource":["customerCard"],"operation":["add"]}}},{"displayName":"Customer ID","name":"customerId","type":"string","required":true,"default":"","description":"ID of the customer whose card to remove","displayOptions":{"show":{"resource":["customerCard"],"operation":["remove"]}}},{"displayName":"Card ID","name":"cardId","type":"string","required":true,"default":"","description":"ID of the card to remove","displayOptions":{"show":{"resource":["customerCard"],"operation":["remove"]}}},{"displayName":"Customer ID","name":"customerId","type":"string","required":true,"default":"","description":"ID of the customer whose card to retrieve","displayOptions":{"show":{"resource":["customerCard"],"operation":["get"]}}},{"displayName":"Source ID","name":"sourceId","type":"string","required":true,"default":"","description":"ID of the source to retrieve","displayOptions":{"show":{"resource":["customerCard"],"operation":["get"]}}},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"default":"get","options":[{"name":"Create","value":"create","description":"Create a charge","action":"Create a charge"},{"name":"Get","value":"get","description":"Get a charge","action":"Get a charge"},{"name":"Get Many","value":"getAll","description":"Get many charges","action":"Get many charges"},{"name":"Update","value":"update","description":"Update a charge","action":"Update a charge"}],"displayOptions":{"show":{"resource":["charge"]}}},{"displayName":"Customer ID","name":"customerId","type":"string","required":true,"default":"","description":"ID of the customer to be associated with this charge","displayOptions":{"show":{"resource":["charge"],"operation":["create"]}}},{"displayName":"Amount","name":"amount","type":"number","required":true,"default":0,"description":"Amount in cents to be collected for this charge, e.g. enter <code>100</code> for $1.00","typeOptions":{"minValue":0,"maxValue":99999999},"displayOptions":{"show":{"resource":["charge"],"operation":["create"]}}},{"displayName":"Currency Name or ID","name":"currency","type":"options","typeOptions":{"loadOptionsMethod":"getCurrencies"},"required":true,"default":"","description":"Three-letter ISO currency code, e.g. <code>USD</code> or <code>EUR</code>. It must be a <a href=\"https://stripe.com/docs/currencies\">Stripe-supported currency</a>. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>.","displayOptions":{"show":{"resource":["charge"],"operation":["create"]}}},{"displayName":"Source ID","name":"source","type":"string","required":true,"default":"","description":"ID of the customer's payment source to be charged","displayOptions":{"show":{"resource":["charge"],"operation":["create"]}}},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["charge"],"operation":["create"]}},"options":[{"displayName":"Description","name":"description","type":"string","default":"","description":"Arbitrary text to describe the charge to create"},{"displayName":"Metadata","name":"metadata","type":"fixedCollection","default":[],"placeholder":"Add Metadata Item","description":"Set of key-value pairs to attach to the charge to create","typeOptions":{"multipleValues":true},"options":[{"displayName":"Metadata Properties","name":"metadataProperties","values":[{"displayName":"Key","name":"key","type":"string","default":""},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Receipt Email","name":"receipt_email","type":"string","default":"","description":"Email address to which the receipt for this charge will be sent"},{"displayName":"Shipping","name":"shipping","type":"fixedCollection","description":"Shipping information for the charge","placeholder":"Add Field","typeOptions":{"multipleValues":true},"default":[],"options":[{"displayName":"Shipping Properties","name":"shippingProperties","values":[{"displayName":"Recipient Name","name":"name","type":"string","description":"Name of the person who will receive the shipment","default":""},{"displayName":"Address","name":"address","type":"fixedCollection","default":{},"placeholder":"Add Field","options":[{"displayName":"Details","name":"details","values":[{"displayName":"Line 1","name":"line1","description":"Address line 1 (e.g. street, PO Box, or company name)","type":"string","default":""},{"displayName":"Line 2","name":"line2","description":"Address line 2 (e.g. apartment, suite, unit, or building)","type":"string","default":""},{"displayName":"City","name":"city","description":"City, district, suburb, town, or village","type":"string","default":""},{"displayName":"State","name":"state","description":"State, county, province, or region","type":"string","default":""},{"displayName":"Country","name":"country","description":"Two-letter country code (<a href=\"https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2\">ISO 3166-1 alpha-2</a>)","type":"string","default":""},{"displayName":"Postal Code","name":"postal_code","description":"ZIP or postal code","type":"string","default":""}]}]}]}]}]},{"displayName":"Charge ID","name":"chargeId","type":"string","required":true,"default":"","description":"ID of the charge to retrieve","displayOptions":{"show":{"resource":["charge"],"operation":["get"]}}},{"displayName":"Return All","name":"returnAll","type":"boolean","default":false,"description":"Whether to return all results or only up to a given limit","displayOptions":{"show":{"resource":["charge"],"operation":["getAll"]}}},{"displayName":"Limit","name":"limit","type":"number","default":50,"description":"Max number of results to return","typeOptions":{"minValue":1,"maxValue":1000},"displayOptions":{"show":{"resource":["charge"],"operation":["getAll"],"returnAll":[false]}}},{"displayName":"Charge ID","name":"chargeId","type":"string","required":true,"default":"","description":"ID of the charge to update","displayOptions":{"show":{"resource":["charge"],"operation":["update"]}}},{"displayName":"Update Fields","name":"updateFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["charge"],"operation":["update"]}},"options":[{"displayName":"Description","name":"description","type":"string","default":"","description":"Arbitrary text to describe the charge to update"},{"displayName":"Metadata","name":"metadata","type":"fixedCollection","default":{},"placeholder":"Add Metadata Item","description":"Set of key-value pairs to attach to the charge to update","typeOptions":{"multipleValues":true},"options":[{"displayName":"Metadata Properties","name":"metadataProperties","values":[{"displayName":"Key","name":"key","type":"string","default":""},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Receipt Email","name":"receipt_email","type":"string","default":"","description":"The email address to which the receipt for this charge will be sent"},{"displayName":"Shipping","name":"shipping","type":"fixedCollection","default":{},"description":"Shipping information for the charge","placeholder":"Add Field","typeOptions":{"multipleValues":true},"options":[{"displayName":"Shipping Properties","name":"shippingProperties","default":{},"values":[{"displayName":"Recipient Name","name":"name","type":"string","default":""},{"displayName":"Recipient Address","name":"address","type":"fixedCollection","default":{},"placeholder":"Add Address Details","options":[{"displayName":"Details","name":"details","values":[{"displayName":"Line 1","name":"line1","description":"Address line 1 (e.g. street, PO Box, or company name)","type":"string","default":""},{"displayName":"Line 2","name":"line2","description":"Address line 2 (e.g. apartment, suite, unit, or building)","type":"string","default":""},{"displayName":"City","name":"city","description":"City, district, suburb, town, or village","type":"string","default":""},{"displayName":"State","name":"state","description":"State, county, province, or region","type":"string","default":""},{"displayName":"Country","name":"country","description":"Two-letter country code (<a href=\"https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2\">ISO 3166-1 alpha-2</a>)","type":"string","default":""},{"displayName":"Postal Code","name":"postal_code","description":"ZIP or postal code","type":"string","default":""}]}]}]}]}]},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"default":"create","options":[{"name":"Create","value":"create","description":"Create a coupon","action":"Create a coupon"},{"name":"Get Many","value":"getAll","description":"Get many coupons","action":"Get many coupons"}],"displayOptions":{"show":{"resource":["coupon"]}}},{"displayName":"Apply","name":"duration","type":"options","required":true,"default":"once","description":"How long the discount will be in effect","options":[{"name":"Forever","value":"forever"},{"name":"Once","value":"once"}],"displayOptions":{"show":{"resource":["coupon"],"operation":["create"]}}},{"displayName":"Discount Type","name":"type","type":"options","required":true,"default":"percent","description":"Whether the coupon discount is a percentage or a fixed amount","options":[{"name":"Fixed Amount (in Cents)","value":"fixedAmount"},{"name":"Percent","value":"percent"}],"displayOptions":{"show":{"resource":["coupon"],"operation":["create"]}}},{"displayName":"Amount Off","name":"amountOff","type":"number","required":true,"default":0,"description":"Amount in cents to subtract from an invoice total, e.g. enter <code>100</code> for $1.00","typeOptions":{"minValue":0,"maxValue":99999999},"displayOptions":{"show":{"resource":["coupon"],"operation":["create"],"type":["fixedAmount"]}}},{"displayName":"Currency Name or ID","name":"currency","type":"options","typeOptions":{"loadOptionsMethod":"getCurrencies"},"required":true,"default":"","description":"Three-letter ISO currency code, e.g. <code>USD</code> or <code>EUR</code>. It must be a <a href=\"https://stripe.com/docs/currencies\">Stripe-supported currency</a>. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>.","displayOptions":{"show":{"resource":["coupon"],"operation":["create"],"type":["fixedAmount"]}}},{"displayName":"Percent Off","name":"percentOff","type":"number","required":true,"default":1,"description":"Percentage to apply with the coupon","typeOptions":{"minValue":1,"maxValue":100},"displayOptions":{"show":{"resource":["coupon"],"operation":["create"],"type":["percent"]}}},{"displayName":"Return All","name":"returnAll","type":"boolean","default":false,"description":"Whether to return all results or only up to a given limit","displayOptions":{"show":{"resource":["coupon"],"operation":["getAll"]}}},{"displayName":"Limit","name":"limit","type":"number","default":50,"description":"Max number of results to return","typeOptions":{"minValue":1,"maxValue":1000},"displayOptions":{"show":{"resource":["coupon"],"operation":["getAll"],"returnAll":[false]}}},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"default":"get","options":[{"name":"Create","value":"create","description":"Create a customer","action":"Create a customer"},{"name":"Delete","value":"delete","description":"Delete a customer","action":"Delete a customer"},{"name":"Get","value":"get","description":"Get a customer","action":"Get a customer"},{"name":"Get Many","value":"getAll","description":"Get many customers","action":"Get many customers"},{"name":"Update","value":"update","description":"Update a customer","action":"Update a customer"}],"displayOptions":{"show":{"resource":["customer"]}}},{"displayName":"Name","name":"name","type":"string","required":true,"default":"","description":"Full name or business name of the customer to create","displayOptions":{"show":{"resource":["customer"],"operation":["create"]}}},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["customer"],"operation":["create"]}},"options":[{"displayName":"Address","name":"address","type":"fixedCollection","description":"Address of the customer to create","placeholder":"Add Field","default":{},"options":[{"displayName":"Details","name":"details","values":[{"displayName":"Line 1","name":"line1","description":"Address line 1 (e.g. street, PO Box, or company name)","type":"string","default":""},{"displayName":"Line 2","name":"line2","description":"Address line 2 (e.g. apartment, suite, unit, or building)","type":"string","default":""},{"displayName":"City","name":"city","description":"City, district, suburb, town, or village","type":"string","default":""},{"displayName":"State","name":"state","description":"State, county, province, or region","type":"string","default":""},{"displayName":"Country","name":"country","description":"Two-letter country code (<a href=\"https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2\">ISO 3166-1 alpha-2</a>)","type":"string","default":""},{"displayName":"Postal Code","name":"postal_code","description":"ZIP or postal code","type":"string","default":""}]}]},{"displayName":"Description","name":"description","type":"string","default":"","description":"Arbitrary text to describe the customer to create"},{"displayName":"Email","name":"email","type":"string","placeholder":"name@email.com","default":"","description":"Email of the customer to create"},{"displayName":"Metadata","name":"metadata","type":"fixedCollection","default":{},"placeholder":"Add Metadata Item","description":"Set of key-value pairs to attach to the customer to create","typeOptions":{"multipleValues":true},"options":[{"displayName":"Metadata Properties","name":"metadataProperties","values":[{"displayName":"Key","name":"key","type":"string","default":""},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Phone","name":"phone","type":"string","default":"","description":"Telephone number of the customer to create"},{"displayName":"Shipping","name":"shipping","type":"fixedCollection","default":{},"description":"Shipping information for the customer","typeOptions":{"multipleValues":true},"placeholder":"Add Field","options":[{"displayName":"Shipping Properties","name":"shippingProperties","values":[{"displayName":"Recipient Name","name":"name","type":"string","default":""},{"displayName":"Recipient Address","name":"address","type":"fixedCollection","default":{},"placeholder":"Add Address Details","options":[{"displayName":"Details","name":"details","values":[{"displayName":"Line 1","name":"line1","description":"Address line 1 (e.g. street, PO Box, or company name)","type":"string","default":""},{"displayName":"Line 2","name":"line2","description":"Address line 2 (e.g. apartment, suite, unit, or building)","type":"string","default":""},{"displayName":"City","name":"city","description":"City, district, suburb, town, or village","type":"string","default":""},{"displayName":"State","name":"state","description":"State, county, province, or region","type":"string","default":""},{"displayName":"Country","name":"country","description":"Two-letter country code (<a href=\"https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2\">ISO 3166-1 alpha-2</a>)","type":"string","default":""},{"displayName":"Postal Code","name":"postal_code","description":"ZIP or postal code","type":"string","default":""}]}]},{"displayName":"Recipient Phone","name":"phone","type":"string","default":""}]}]}]},{"displayName":"Customer ID","name":"customerId","type":"string","required":true,"default":"","description":"ID of the customer to delete","displayOptions":{"show":{"resource":["customer"],"operation":["delete"]}}},{"displayName":"Customer ID","name":"customerId","type":"string","required":true,"default":"","description":"ID of the customer to retrieve","displayOptions":{"show":{"resource":["customer"],"operation":["get"]}}},{"displayName":"Return All","name":"returnAll","type":"boolean","default":false,"description":"Whether to return all results or only up to a given limit","displayOptions":{"show":{"resource":["customer"],"operation":["getAll"]}}},{"displayName":"Limit","name":"limit","type":"number","default":50,"description":"Max number of results to return","typeOptions":{"minValue":1,"maxValue":1000},"displayOptions":{"show":{"resource":["customer"],"operation":["getAll"],"returnAll":[false]}}},{"displayName":"Filters","name":"filters","type":"collection","placeholder":"Add Filter","default":{},"displayOptions":{"show":{"resource":["customer"],"operation":["getAll"]}},"options":[{"displayName":"Email","name":"email","type":"string","placeholder":"name@email.com","default":"","description":"Customer's email to filter by"}]},{"displayName":"Customer ID","name":"customerId","type":"string","required":true,"default":"","description":"ID of the customer to update","displayOptions":{"show":{"resource":["customer"],"operation":["update"]}}},{"displayName":"Update Fields","name":"updateFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["customer"],"operation":["update"]}},"options":[{"displayName":"Address","name":"address","type":"fixedCollection","description":"Address of the customer to update","placeholder":"Add Field","default":{},"options":[{"displayName":"Details","name":"details","values":[{"displayName":"Line 1","name":"line1","description":"Address line 1 (e.g. street, PO Box, or company name)","type":"string","default":""},{"displayName":"Line 2","name":"line2","description":"Address line 2 (e.g. apartment, suite, unit, or building)","type":"string","default":""},{"displayName":"City","name":"city","description":"City, district, suburb, town, or village","type":"string","default":""},{"displayName":"State","name":"state","description":"State, county, province, or region","type":"string","default":""},{"displayName":"Country","name":"country","description":"Two-letter country code (<a href=\"https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2\">ISO 3166-1 alpha-2</a>)","type":"string","default":""},{"displayName":"Postal Code","name":"postal_code","description":"ZIP or postal code","type":"string","default":""}]}]},{"displayName":"Description","name":"description","type":"string","default":"","description":"Arbitrary text to describe the customer to create"},{"displayName":"Email","name":"email","type":"string","placeholder":"name@email.com","default":"","description":"Email of the customer to create"},{"displayName":"Metadata","name":"metadata","type":"fixedCollection","default":{},"placeholder":"Add Metadata Item","description":"Set of key-value pairs to attach to the customer to create","typeOptions":{"multipleValues":true},"options":[{"displayName":"Metadata Properties","name":"metadataProperties","values":[{"displayName":"Key","name":"key","type":"string","default":""},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Name","name":"name","type":"string","default":"","description":"Full name or business name of the customer to create"},{"displayName":"Phone","name":"phone","type":"string","default":"","description":"Telephone number of this customer"},{"displayName":"Shipping","name":"shipping","type":"fixedCollection","description":"Shipping information for the customer","placeholder":"Add Field","typeOptions":{"multipleValues":true},"default":{},"options":[{"displayName":"Shipping Properties","name":"shippingProperties","values":[{"displayName":"Recipient Name","name":"name","type":"string","default":"","description":"Name of the person who will receive the shipment"},{"displayName":"Recipient Address","name":"address","type":"fixedCollection","default":{},"placeholder":"Add Address Details","options":[{"displayName":"Details","name":"details","values":[{"displayName":"Line 1","name":"line1","description":"Address line 1 (e.g. street, PO Box, or company name)","type":"string","default":""},{"displayName":"Line 2","name":"line2","description":"Address line 2 (e.g. apartment, suite, unit, or building)","type":"string","default":""},{"displayName":"City","name":"city","description":"City, district, suburb, town, or village","type":"string","default":""},{"displayName":"State","name":"state","description":"State, county, province, or region","type":"string","default":""},{"displayName":"Country","name":"country","description":"Two-letter country code (<a href=\"https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2\">ISO 3166-1 alpha-2</a>)","type":"string","default":""},{"displayName":"Postal Code","name":"postal_code","description":"ZIP or postal code","type":"string","default":""}]}]},{"displayName":"Recipient Phone","name":"phone","type":"string","default":"","description":"Phone number of the person who will receive the shipment"}]}]}]},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"default":"get","options":[{"name":"Create","value":"create","description":"Create a source","action":"Create a source"},{"name":"Delete","value":"delete","description":"Delete a source","action":"Delete a source"},{"name":"Get","value":"get","description":"Get a source","action":"Get a source"}],"displayOptions":{"show":{"resource":["source"]}}},{"displayName":"Customer ID","name":"customerId","type":"string","required":true,"default":"","description":"ID of the customer to attach the source to","displayOptions":{"show":{"resource":["source"],"operation":["create"]}}},{"displayName":"Type","name":"type","type":"options","required":true,"default":"wechat","description":"Type of source (payment instrument) to create","options":[{"name":"WeChat","value":"wechat"}],"displayOptions":{"show":{"resource":["source"],"operation":["create"]}}},{"displayName":"Amount","name":"amount","type":"number","default":0,"description":"Amount in cents to be collected for this charge, e.g. enter <code>100</code> for $1.00","typeOptions":{"minValue":0,"maxValue":99999999},"displayOptions":{"show":{"resource":["source"],"operation":["create"]}}},{"displayName":"Currency Name or ID","name":"currency","type":"options","typeOptions":{"loadOptionsMethod":"getCurrencies"},"default":"","description":"Three-letter ISO currency code, e.g. <code>USD</code> or <code>EUR</code>. It must be a <a href=\"https://stripe.com/docs/currencies\">Stripe-supported currency</a>. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>.","displayOptions":{"show":{"resource":["source"],"operation":["create"]}}},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["source"],"operation":["create"]}},"options":[{"displayName":"Metadata","name":"metadata","type":"fixedCollection","placeholder":"Add Metadata Item","description":"Set of key-value pairs to attach to the source to create","default":{},"typeOptions":{"multipleValues":true},"options":[{"displayName":"Metadata Properties","name":"metadataProperties","values":[{"displayName":"Key","name":"key","type":"string","default":""},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Statement Descriptor","name":"statement_descriptor","type":"string","default":"","description":"Arbitrary text to display on the customer's statement"}]},{"displayName":"Customer ID","name":"customerId","type":"string","required":true,"default":"","description":"ID of the customer whose source to delete","displayOptions":{"show":{"resource":["source"],"operation":["delete"]}}},{"displayName":"Source ID","name":"sourceId","type":"string","required":true,"default":"","description":"ID of the source to delete","displayOptions":{"show":{"resource":["source"],"operation":["delete"]}}},{"displayName":"Source ID","name":"sourceId","type":"string","required":true,"default":"","description":"ID of the source to retrieve","displayOptions":{"show":{"resource":["source"],"operation":["get"]}}},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"default":"create","options":[{"name":"Create","value":"create","description":"Create a token","action":"Create a token"}],"displayOptions":{"show":{"resource":["token"]}}},{"displayName":"Type","name":"type","type":"options","required":true,"default":"cardToken","description":"Type of token to create","options":[{"name":"Card Token","value":"cardToken"}],"displayOptions":{"show":{"resource":["token"],"operation":["create"]}}},{"displayName":"Card Number","name":"number","type":"string","displayOptions":{"show":{"resource":["token"],"operation":["create"],"type":["cardToken"]}},"placeholder":"4242424242424242","default":""},{"displayName":"CVC","name":"cvc","type":"string","displayOptions":{"show":{"resource":["token"],"operation":["create"],"type":["cardToken"]}},"default":"","placeholder":"314","description":"Security code printed on the back of the card"},{"displayName":"Expiration Month","description":"Number of the month when the card will expire","name":"expirationMonth","type":"string","displayOptions":{"show":{"resource":["token"],"operation":["create"],"type":["cardToken"]}},"default":"","placeholder":"10"},{"displayName":"Expiration Year","description":"Year when the card will expire","name":"expirationYear","type":"string","displayOptions":{"show":{"resource":["token"],"operation":["create"],"type":["cardToken"]}},"default":"","placeholder":"2022"}],"codex":{"categories":["Finance & Accounting","Sales"],"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.stripe/"}],"credentialDocumentation":[{"url":"https://docs.n8n.io/credentials/stripe"}]}},"iconUrl":"icons/n8n-nodes-base/dist/nodes/Stripe/stripe.svg"},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-base",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "Base nodes of n8n",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "homepage": "https://n8n.io",
@@ -306,6 +306,7 @@
306
306
  "dist/credentials/StoryblokContentApi.credentials.js",
307
307
  "dist/credentials/StoryblokManagementApi.credentials.js",
308
308
  "dist/credentials/StrapiApi.credentials.js",
309
+ "dist/credentials/StrapiTokenApi.credentials.js",
309
310
  "dist/credentials/StravaOAuth2Api.credentials.js",
310
311
  "dist/credentials/StripeApi.credentials.js",
311
312
  "dist/credentials/SupabaseApi.credentials.js",